Showing posts with label image. Show all posts
Showing posts with label image. Show all posts

Saturday, March 31, 2012

TExt Box :-( image

Dear Advance,

How to save image from a given textbox text.

Regards,

Kamrul Hassan

huh?

You can't... if you want the client to upload an image use the upload control.... you can't pull a file off the client PC...thank heaven...

Text Box and Image Button

Hello,

I added a TextBox and an Image Button to a page so that they are side
by side.
Instead of both being top aligned the Text Box is pushed down.

Why is that?
How can I solve this?

Thanks,
MiguelHi there again,

<asp:ImageButton ID="ImageButton1" runat="server" ImageAlign="Top" />
<asp:TextBox ID="TextBox2" runat="server" />

or

<table>
<tr>
<td valign="top">
<asp:ImageButton ID="ImageButton2" runat="server" />
</td>
<td valign="top">
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</td>
</tr>
</table>

or

<div>
<div style="float:left">
<asp:ImageButton ID="ImageButton3" runat="server" />
</div>
<asp:TextBox ID="TextBox3" runat="server" />
</div>
--
Milosz

"shapper" wrote:

Quote:

Originally Posted by

Hello,
>
I added a TextBox and an Image Button to a page so that they are side
by side.
Instead of both being top aligned the Text Box is pushed down.
>
Why is that?
How can I solve this?
>
Thanks,
Miguel
>
>

Text Box and Image Button

Hello,
I added a TextBox and an Image Button to a page so that they are side
by side.
Instead of both being top aligned the Text Box is pushed down.
Why is that?
How can I solve this?
Thanks,
MiguelHi there again,
<asp:ImageButton ID="ImageButton1" runat="server" ImageAlign="Top" />
<asp:TextBox ID="TextBox2" runat="server" />
or
<table>
<tr>
<td valign="top">
<asp:ImageButton ID="ImageButton2" runat="server" />
</td>
<td valign="top">
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</td>
</tr>
</table>
or
<div>
<div style="float:left">
<asp:ImageButton ID="ImageButton3" runat="server" />
</div>
<asp:TextBox ID="TextBox3" runat="server" />
</div>
--
Milosz
"shapper" wrote:

> Hello,
> I added a TextBox and an Image Button to a page so that they are side
> by side.
> Instead of both being top aligned the Text Box is pushed down.
> Why is that?
> How can I solve this?
> Thanks,
> Miguel
>

Monday, March 26, 2012

Text Image Component

Just wondering if anyone has ever seen a 3rd party component that
facilitates the creation of text images. I know I can "roll my own" but was
not wanting to reinvent the wheel. I searched www.asp.net and google, but
didn't find anything other than how-to articles.
Thanks!There was some good example code of a simple text/image component in
the book Developing Microsoft ASP.NET Server Controls and Components. I
believe the source code used is freely available at the website.
http://www.microsoft.com/mspress/books/5728.asp
Actually, that would be in the companion content section.
[url]http://www.microsoft.com/mspress/books/companion/5728.asp#Companion%20Content[/url
]

Text Image Component

Just wondering if anyone has ever seen a 3rd party component that
facilitates the creation of text images. I know I can "roll my own" but was
not wanting to reinvent the wheel. I searched www.asp.net and google, but
didn't find anything other than how-to articles.

Thanks!There was some good example code of a simple text/image component in
the book Developing Microsoft ASP.NET Server Controls and Components. I
believe the source code used is freely available at the website.

http://www.microsoft.com/mspress/books/5728.asp
Actually, that would be in the companion content section.

http://www.microsoft.com/mspress/bo...anion%20Content

Text in Image, Question

I know there has to be a real simple solution to this:
<%@dotnet.itags.org. Page Language="c#"%>
<%@dotnet.itags.org. Import Namespace="System.Drawing.Imaging" %>
<%@dotnet.itags.org. Import Namespace="System.Drawing" %>
<%@dotnet.itags.org. Import Namespace="System.Drawing.Drawing2D" %>
<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
Bitmap bmp= new Bitmap(Server.MapPath(Request.QueryString["i"]));
Graphics g=Graphics.FromImage(bmp);
g.SmoothingMode = SmoothingMode.AntiAlias ;
g.DrawString(Request.QueryString["t"],
new Font("verdana",12),SystemBrushes.WindowText, 1, 1);
Response.ContentType="image/jpeg";
bmp.Save(Response.OutputStream, bmp.RawFormat) ;
}
</script>
I have tried adding in stuff and changing stuff, but I just can't do it!
All I want to do is change the font color to white
Thanks in advanceg.ForeColor = Color.White

Text in images

Hi, do anyone knows the best way to save text strings in an image space?
I've to print them with a laser plotter and I need them to be the sharpest
possible.
I'd prefer them to be vectorial but I don't know how (and if it is possible)
to do.
I tried to save the string @dotnet.itags.org.2400 dpi but when I open the images with such a
program like photoshop they are simply little and when I try to enlarge them
to fit the printing they lose definition and the image is non sharp.

This is a part of the code...

Dim pic As New System.Drawing.Bitmap(wi, he, PixelFormat.Format24bppRgb)
Dim g As Graphics = Graphics.FromImage(pic)
pic.SetResolution(150,150)
Dim solidBrush As New SolidBrush(Color.Black)
g.Clear(sfondogrigio)
g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGri dFit
g.SmoothingMode = SmoothingMode.AntiAlias ' antialias objects

g.DrawString(something, font, color,x,y)

Thnks a lot.
AleAle,

It really depends on the original image size that you're loading. If you're
loading into a large image space the image must by in the proper resolution
to start with to fill this space.

You can resize of course but you will loose definition in that as you're
experiencing. The key is to make sure the oringal images you have or you
create dynamically are sized in the size that you need to start with. GDI+
is pixel based so it doesn't automatically resize and smooth out things
<g>...

+++ Rick --

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/weblog/
-----------
Making waves on the Web

"Ale" <axxonkava123@.hotmail.com> wrote in message
news:c2cu7l$vn8$1@.nntp.atlavia.it...
> Hi, do anyone knows the best way to save text strings in an image space?
> I've to print them with a laser plotter and I need them to be the sharpest
> possible.
> I'd prefer them to be vectorial but I don't know how (and if it is
possible)
> to do.
> I tried to save the string @.2400 dpi but when I open the images with such
a
> program like photoshop they are simply little and when I try to enlarge
them
> to fit the printing they lose definition and the image is non sharp.
>
> This is a part of the code...
>
> Dim pic As New System.Drawing.Bitmap(wi, he, PixelFormat.Format24bppRgb)
> Dim g As Graphics = Graphics.FromImage(pic)
> pic.SetResolution(150,150)
> Dim solidBrush As New SolidBrush(Color.Black)
> g.Clear(sfondogrigio)
> g.TextRenderingHint =
System.Drawing.Text.TextRenderingHint.ClearTypeGri dFit
> g.SmoothingMode = SmoothingMode.AntiAlias ' antialias objects
> g.DrawString(something, font, color,x,y)
>
> Thnks a lot.
> Ale
Does this page produce the sort of results you want?

http://www.lamartin.com/dotnet/TextToImage.aspx

"Ale" <axxonkava123@.hotmail.com> wrote in message
news:c2cu7l$vn8$1@.nntp.atlavia.it...
> Hi, do anyone knows the best way to save text strings in an image space?
> I've to print them with a laser plotter and I need them to be the sharpest
> possible.
> I'd prefer them to be vectorial but I don't know how (and if it is
possible)
> to do.
> I tried to save the string @.2400 dpi but when I open the images with such
a
> program like photoshop they are simply little and when I try to enlarge
them
> to fit the printing they lose definition and the image is non sharp.
>
> This is a part of the code...
>
> Dim pic As New System.Drawing.Bitmap(wi, he, PixelFormat.Format24bppRgb)
> Dim g As Graphics = Graphics.FromImage(pic)
> pic.SetResolution(150,150)
> Dim solidBrush As New SolidBrush(Color.Black)
> g.Clear(sfondogrigio)
> g.TextRenderingHint =
System.Drawing.Text.TextRenderingHint.ClearTypeGri dFit
> g.SmoothingMode = SmoothingMode.AntiAlias ' antialias objects
> g.DrawString(something, font, color,x,y)
>
> Thnks a lot.
> Ale

Thursday, March 22, 2012

text/image verification question

Anyone know of a software company where I can purchase to integrate into my web site ? This software presents a word in distorted images and user has to type in the corresponding characters for verification that its a real person and not a script.

what you want to search on is CAPTCHA

I used this in the past (http://blogs.clearscreen.com/migs/archive/2004/11/10/575.aspx)

Tuesday, March 13, 2012

TextBox and ImageButton

Hello,

I added a TextBox and an Image Button to a page so that they are side by side.
Instead of both being top aligned the Text Box is pushed down.

Why is that?
How can I solve this?

Thanks,
Miguel

Insert a table of 1 row, 2 columns (I do it from the Layout menu)

Put the TextBox in one cell, the Image Button in the other.

You may have to play with the cell alignments to get it to look the way you want.


Tables are the easiest way to handle controlling the layout of your page. If you're not going to use css to control your layout, you'll need to use tables. Good Luck!

Hi,

I don't use tables. I always use CSS for layouts.

Anyway, I was able to solve it. Just set my ImageButton's ImageAlign property to Top and everything went fine.

Thanks,

Miguel


Great, css is far better for your work. Good Luck

shapper:

Hi,

I don't use tables. I always use CSS for layouts.

Anyway, I was able to solve it. Just set my ImageButton's ImageAlign property to Top and everything went fine.

Thanks,

Miguel

I just recently learned an even easier way to control your layout. Go to the layout tab, then go to position > auto-position options > then check the checkbox for changing position for controls added.

That should really spice things up for ya, good luck!