Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
all groups > dotnet drawing api > january 2008

Drawing Text to Fill/Scale to Bounding Rectangle
Posted by daokfella at 1/30/2008 10:54:30 AM
I have an image onto which I want to draw some text. I can do the basics just fine. However, is it possible to draw text that will fill and scale to a bounding rectangle? If so, how? My basic code for drawing text is as follows: Dim bmp As New Bitmap(New IO.MemoryStream(myByteArray)) Dim g...more >>


Not disposing StringFormat?
Posted by JS at 1/27/2008 4:36:27 AM
Can anyone tell me possible side effects of not disposing StringFormat instances? I have some software I've released where I don't dispose these (note, MSDN has lots of examples where they create StringFormat instances without disposing them). I have changed my software so that future relea...more >>

how to printing multiple pages
Posted by omasis at 1/25/2008 7:23:34 AM
first all hi anyone the following code is executed in my c# project i cant printing next page public void onPrintDocument(object sender, PrintPageEventArgs e) { float lineHeight = Font.GetHeight(e.Graphics); float x = e.MarginBounds.Left; ...more >>

Pixel is getting spread
Posted by jain.vaibhav.t@gmail.com at 1/24/2008 3:17:25 AM
Hi, Currently i am drawing text in one of jpg file . after inserting image into the word document i am saving that word doc as PDF using add-ins of office 2007. But when i increase the zoom in that pdf file the text which are drawn in that image is getting bluring. Could u plz tell me whats t...more >>

Drop specific color
Posted by Ruby Nadler at 1/23/2008 8:42:40 PM
Hi Everyone, is there a way to remove specific color from bitmap and change it to different color? lest say i wont to switch all pixels with red color to white or rgb(value,value,value) to different one. Thanks ...more >>

Determining space to left and right of text when measured using MeasureString()
Posted by Nathan Sokalski at 1/20/2008 8:00:02 PM
I have a peice of code that generates button images that I use on my site. In order to determine the width of the image, I use the MeasureString() method of the Graphics class. However, depending on the text passed to the method, the amount of space to the sides of the text may vary. To see an...more >>

Automatic Print to File VB.NET
Posted by kraeven at 1/17/2008 1:25:09 PM
Hi guys, I have been looking for a few days, but no one seems to know how to print to a file with automatic file renaming. I made an application in VB.NET 2005 that prints pdf visio and project files. Select the files or folders, select a printer and the applications are executed with the c...more >>

drawing
Posted by ramapriya92@gmail.com at 1/16/2008 1:58:51 AM
drawing you are the drawing master? %%%%%%%%%%%%%%%%%%%% http://padmagirl.blogspot.com %%%%%%%%%%%%%%%%%%%%% ...more >>



Avoiding SecurityException: System.Security.Permissions.SecurityPermission
Posted by Nathan Sokalski at 1/12/2008 11:58:29 AM
I have a function that I wrote that add transparency to a System.Drawing.Image. When using this function on my webhost, I receive the error SecurityException: System.Security.Permissions.SecurityPermission I am still able to generate graphics, but if I use this function I receive this er...more >>

SetActiveFrame() on tif throwing exception (whole source incl.)
Posted by Steve K. at 1/7/2008 11:16:27 PM
Hi, 1.5 days of trying to solve this and I can't.... I now ask the pros for help :0) I'm working on an image viewing module for our office application. We will need to display multi pages tiff (faxes). I've created a sample application to familiarize myself with working with tiffs. Th...more >>

SetTextCharacterExtra in .NET?
Posted by Mark Raishbrook at 1/6/2008 1:01:00 PM
GDI lets you set the intercharacter spacing within a string. Is there an equivalent hidden away somewhere in .NET's Graphics class? I can't seem to find anything that does the trick. ...more >>

Any way to set PNG compression level?
Posted by Dave Huang at 1/4/2008 9:42:03 PM
Hi, using Image.Save(filename, ImageFormat.Png) gives me a working PNG file, but it seems bigger than it needs to be. Is there a way to configure the compression level? I looked into EncoderParameters, but didn't spot anything that sounded like compression level. Encoder.Compression seems to...more >>

Understanding GDI+ Transfomations (or not)
Posted by Stephany Young at 1/1/2008 2:43:22 PM
I am having trouble, I think, dealing with GDI+ transformations. I have read all that I can find on the subject, (including Bob Powell's excellent FAQ and primer), but I appear to be missing some fundamental or I just don't get it. What I am attempting to do is illustrated in the VB.NET co...more >>


DevelopmentNow Blog