Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP.NET (Non-Forum Related)
 Text Layered on Image
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

dayve
Forum Moderator

USA
5820 Posts

Posted - 19 September 2002 :  23:59:52  Show Profile  Visit dayve's Homepage
okay, I've had some great help from pweighill and Richard for ASP.NET and text to images.

what I would like to learn now, if someone could provide sample code or a link to some resources is a way to position some text OVER a pre-loaded image.

TIA...

Doug G
Support Moderator

USA
6493 Posts

Posted - 20 September 2002 :  00:38:57  Show Profile
Take a look here, Steve overlays text in this sample upload thumbnail script.

http://www.morningz.com/mz/crystal/dotnet/uploadImage.aspx

======
Doug G
======
Computer history and help at www.dougscode.com
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 20 September 2002 :  00:45:12  Show Profile
AWESOME !!! - I've never seen .NET code before, but I might be using stuff like this a LOT more often .

This code looks like it is creating a new image based on the uploaded file, could you overlay a pre-existing image ?? (sorta like doing a layer in PhotoShop).

[I'll play around and see if I can find the answer anyway]
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 20 September 2002 :  01:10:22  Show Profile  Visit dayve's Homepage
Doug: thanks

laser: read this topic, http://forum.snitz.com/forum/topic.asp?TOPIC_ID=34718
my signature is a dynamically created .NET Text to Image


Edited by - dayve on 20 September 2002 01:10:36
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 20 September 2002 :  01:30:45  Show Profile
Dayve, I understand the theory of the links provided here, but I'm thinking of a neat trick for my photography gallery - I upload so many photo's that I don't bother adding a "copyright" notice to each one (the copyright is basically a transparent GIF, that overlays the original image). Now I'm thinking I could use the .NET code to take a directory full of images (with a standard naming convention); create the thumbnail then insert the copyright. ALL files are a standard size, and ALL thumbs are a fixed percentage smaller.

(See the effect at www.v8central.com. The Gallery link on the left ... the page count and images to display are all calculated from the code on the page, there is no hard-coded img tags at all.
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 20 September 2002 :  01:42:40  Show Profile  Visit dayve's Homepage
cool cars

Go to Top of Page

Jeepaholic
Average Member

USA
697 Posts

Posted - 20 September 2002 :  01:51:14  Show Profile  Visit Jeepaholic's Homepage
Good stuff! Is there any way to re-sample the image during resizing in .NET? Sucks when you take a nice image and thumbnail it, and it's got jagged lines everywhere.

Al Bsharah
Aholics.com

Jeepaholics Anonymous
Broncoholics Anonymous
Network Insight
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 20 September 2002 :  02:01:18  Show Profile  Visit dayve's Homepage
the demo script that Doug posted also truly resamples images into thumbnails.

Go to Top of Page

Jeepaholic
Average Member

USA
697 Posts

Posted - 20 September 2002 :  02:45:49  Show Profile  Visit Jeepaholic's Homepage
Mmmmmmmmm, I think it re-SIZES it, but not re-SAMPLES it. When I resample the same image in Photoshop or one of my thumbnail programs, it comes out a perfectly clean thumbnail. When I use this script, all the lines are jagged and nasty as if it were simply resized in something like MS Photo Editor.

I can post the differences, but I gotta get to bed! <grin>

Al Bsharah
Aholics.com

Jeepaholics Anonymous
Broncoholics Anonymous
Network Insight

Edited by - Jeepaholic on 20 September 2002 02:46:27
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 20 September 2002 :  10:42:11  Show Profile  Visit dayve's Homepage
you'll have to excuse my terminology then because in PhotoPaint when I want images smaller, I resample them (of course generally maintaining the same pixels) but change the size within that dialogue box. to me that is considered resampling. however, I do understand what you are trying to do and although I have not witnessed your issue, I would imagine their are some additional filtering techniques within the code to try and duplicate what you want.

Go to Top of Page

Jeepaholic
Average Member

USA
697 Posts

Posted - 20 September 2002 :  13:40:02  Show Profile  Visit Jeepaholic's Homepage
Here's some examples for reference, Dayve:

Original picture HERE.

Thumbnail generated from Adobe Photoshop:


Thumbnail generated from .NET Script:


I think there's probably a method or property somewhere that can be set so the image is correctly resampled. The thing I've found about .NET is that it's tough to figure out where all the goodies are! <grin>

Al Bsharah
Aholics.com

Jeepaholics Anonymous
Broncoholics Anonymous
Network Insight
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 05 December 2003 :  16:03:53  Show Profile
*newbie alert*

OK, can someone help me with some .Net code ?

I have the text coming nicely over the image, what I would like to do is create a box (hopefully with rounded edges) between the original image and the text. Hopefully this box can be set to 50% opacity or something like that to make it nifty
Go to Top of Page

Dave.
Senior Member

USA
1037 Posts

Posted - 05 December 2003 :  17:31:24  Show Profile
quote:
Originally posted by dayve
my signature is a dynamically created .NET Text to Image



Interesting...How come it says I have Windows NT 5.0, but I'm sure I have 5.1.2600; and I'm Not using a proxy....Is it seeing your server as the OS?
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 05 December 2003 :  17:34:22  Show Profile
quote:
Interesting...How come it says I have Windows NT 5.0, but I'm sure I have 5.1.2600; and I'm Not using a proxy....Is it seeing your server as the OS?

Same here ... OS is wrong, IP is correct though.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.29 seconds. Powered By: Snitz Forums 2000 Version 3.4.07