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 >>
Don't see what you're looking for? Search DevelopmentNow.com.
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 >>
|