Showing posts with label images. Show all posts
Showing posts with label images. Show all posts

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 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)

Textarea-control

First, posting images in a newsgroup is poor netiquette. However, I'll put
that down to inexperience with newsgroups.

However, second, you're expecting some ready-made control to be manufactured
somewhere that does whatever that dialog box from an executable does? I
thought -I- was optimistic!

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Bart Schelkens" <bschelkens@dotnet.itags.org.hotmail.com> wrote in message
news:OsORcNPGFHA.3792@dotnet.itags.org.TK2MSFTNGP10.phx.gbl...
> Hi,
> I'm looking for a control that allows a user to use buttons so he can put
> some html in his text.
> Something like the ones in the screen shot.
> Can anyone help me?
> Thanks in advance.The image was so everybody would understand what i was talking about.
And the executable you are talking about, is an existing website written in
asp.
And since I got replies with links to the control i'm looking for, i guess
you should be more optimistic.

"Kevin Spencer" <kevin@.DIESPAMMERSDIEtakempis.com> schreef in bericht
news:uTG$ZcPGFHA.428@.TK2MSFTNGP15.phx.gbl...
> First, posting images in a newsgroup is poor netiquette. However, I'll put
> that down to inexperience with newsgroups.
> However, second, you're expecting some ready-made control to be
> manufactured somewhere that does whatever that dialog box from an
> executable does? I thought -I- was optimistic!
> --
> HTH,
> Kevin Spencer
> Microsoft MVP
> .Net Developer
> Neither a follower nor a lender be.
> "Bart Schelkens" <bschelkens@.hotmail.com> wrote in message
> news:OsORcNPGFHA.3792@.TK2MSFTNGP10.phx.gbl...
>> Hi,
>>
>> I'm looking for a control that allows a user to use buttons so he can put
>> some html in his text.
>> Something like the ones in the screen shot.
>>
>> Can anyone help me?
>> Thanks in advance.
>>
>>
>>
> And since I got replies with links to the control i'm looking for, i guess
> you should be more optimistic.

We'll see!

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Bart Schelkens" <bschelkens@.hotmail.com> wrote in message
news:eEfyyCRGFHA.2156@.TK2MSFTNGP09.phx.gbl...
> The image was so everybody would understand what i was talking about.
> And the executable you are talking about, is an existing website written
> in asp.
> And since I got replies with links to the control i'm looking for, i guess
> you should be more optimistic.
> "Kevin Spencer" <kevin@.DIESPAMMERSDIEtakempis.com> schreef in bericht
> news:uTG$ZcPGFHA.428@.TK2MSFTNGP15.phx.gbl...
>> First, posting images in a newsgroup is poor netiquette. However, I'll
>> put that down to inexperience with newsgroups.
>>
>> However, second, you're expecting some ready-made control to be
>> manufactured somewhere that does whatever that dialog box from an
>> executable does? I thought -I- was optimistic!
>>
>> --
>> HTH,
>>
>> Kevin Spencer
>> Microsoft MVP
>> .Net Developer
>> Neither a follower nor a lender be.
>>
>> "Bart Schelkens" <bschelkens@.hotmail.com> wrote in message
>> news:OsORcNPGFHA.3792@.TK2MSFTNGP10.phx.gbl...
>>> Hi,
>>>
>>> I'm looking for a control that allows a user to use buttons so he can
>>> put some html in his text.
>>> Something like the ones in the screen shot.
>>>
>>> Can anyone help me?
>>> Thanks in advance.
>>>
>>>
>>>
>>
>>