Webmaster Forum

Advertise Here   High Bandwidth Dedicated Servers   V7N Directory
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Reply
 
LinkBack Thread Tools Display Modes
Old 12-03-2007, 12:51 PM   #1 (permalink)
v7n Mentor
 
searchbliss's Avatar
 
Join Date: 03-25-06
Posts: 694
iTrader: 1 / 100%
searchbliss is just really nicesearchbliss is just really nicesearchbliss is just really nicesearchbliss is just really nicesearchbliss is just really nicesearchbliss is just really nicesearchbliss is just really nicesearchbliss is just really nicesearchbliss is just really nicesearchbliss is just really nicesearchbliss is just really nice
.NET Question

I can create images with text on the fly with .NET, but I can't add text effects (reflections. shadows. etc.). Any ideas how to do this? Here are the namespaces I am using.

Code:
<%@ Page Language="VB" Debug="True" %> <%@ Import Namespace="System.Drawing" %> <%@ Import Namespace="System.Drawing.Imaging" %> <%@ Import Namespace="System.Drawing.Text" %>
Thanks!
searchbliss is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 12-03-2007, 02:59 PM   #2 (permalink)
v7n Mentor
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania (atm)
Posts: 2,846
iTrader: 0 / 0%
Costin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web pro
I don't think you can do what you want (reflections. shadows..over text) in .NET 2.0

If you want to alter the text the way you want then you should consider using WPF (.NET 3.5).

- http://wpf.netfx3.com/
__________________
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-03-2007, 05:28 PM   #3 (permalink)
nks
Contributing Member
 
nks's Avatar
 
Join Date: 03-23-07
Location: Ireland
Posts: 533
iTrader: 0 / 0%
nks is just really nicenks is just really nicenks is just really nicenks is just really nicenks is just really nicenks is just really nicenks is just really nicenks is just really nicenks is just really nicenks is just really nicenks is just really nice
I use .NET as well, but uses C# instead.

As for reflections and text effects, I suppose you might have better luck writing java script code and have a runat="server" for that.
__________________
Life As Such.... but check out
NeoHide - News Linking Point ~~ NuclearLand - Free Link Submission
nks is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-04-2007, 11:18 AM   #4 (permalink)
v7n Mentor
 
searchbliss's Avatar
 
Join Date: 03-25-06
Posts: 694
iTrader: 1 / 100%
searchbliss is just really nicesearchbliss is just really nicesearchbliss is just really nicesearchbliss is just really nicesearchbliss is just really nicesearchbliss is just really nicesearchbliss is just really nicesearchbliss is just really nicesearchbliss is just really nicesearchbliss is just really nicesearchbliss is just really nice
I was told to use GDI+ and System.Imaging.2D, but this hasn't worked for me yet. Is it worth spending more time on or is there a better route with VB?
searchbliss is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-04-2007, 01:23 PM   #5 (permalink)
v7n Mentor
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania (atm)
Posts: 2,846
iTrader: 0 / 0%
Costin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web pro
Try MS's forums, maybe they will have a better answer for you?
__________________
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-19-2008, 09:34 PM   #6 (permalink)
Junior Member
 
danparks's Avatar
 
Join Date: 02-19-08
Posts: 12
iTrader: 0 / 0%
Latest Blog:
None

danparks is liked by many
Quote:
Originally Posted by searchbliss View Post
I can create images with text on the fly with .NET, but I can't add text effects (reflections. shadows. etc.). Any ideas how to do this? Here are the namespaces I am using.

Code:
<%@ Page Language="VB" Debug="True" %> <%@ Import Namespace="System.Drawing" %> <%@ Import Namespace="System.Drawing.Imaging" %> <%@ Import Namespace="System.Drawing.Text" %>
Thanks!
Your namespaces are correct. I haven't done text effects, but for the general part of creating the image and drawing text to it the following works to draw text in a rectangle (sorry, not a complete answer, but it might be of some help):

Bitmap bitmap = new Bitmap(100, 50);

Graphics gr = Graphics.FromImage(bitmap);

gr.FillRectangle(Brushes.LightGray, new Rectangle(0, 0, bitmap.Width, bitmap.Height));

gr.DrawString("Hello", font, Brushes.Black, (float)10, (float)20);

Dan
__________________
MadBeeTech.com | Hosting | Website builder | Sell products | Sell digital downloads | Include a membership area
danparks is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
CD Question Linda in NY Computers & Internet 17 01-04-2007 11:29 AM
Question about question marks? clipse Coding Forum 18 03-15-2006 03:21 PM
vB Skinning Question. CSS Question. JuggoPop Coding Forum 10 02-28-2006 01:44 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 08:06 AM.
© Copyright 2008 V7 Inc


Search Engine Optimization by vBSEO 3.1.0 ©2007, Crawlability, Inc.