all groups > dotnet drawing api > january 2005 > threads for january 1 - 7, 2005
Filter by week: 1 2 3 4 5
problems with flips/rotations of certain shapes
Posted by sean.slavin NO[at]SPAM wonderware.com at 1/7/2005 2:46:46 PM
I'm trying to debug some code and now I'm lost. Here's the problem.
I have a graphic editor with which I can draw shapes and other
graphical items. I can also do rotations (90 degree increments,
clockwise and counterclockwise) and flips (horizontal and vertical).
With some shapes, such as a cu... more >>
how do I save/convert a bitmap to a gif,jpg,png or xmb to display
Posted by Matt McGinnis at 1/7/2005 12:31:09 PM
I found an article on how to save an image to a bitmap file but I want my
output file to be viewable in Pocket IE and .bmp is not supported. Does
anyone know where to find the code or a library that will allow me to save
directly to , or convert to one of the file types compatible with Pocke... more >>
font border
Posted by nik NO[at]SPAM email.dk at 1/7/2005 6:46:00 AM
I would like to use the method DrawString(string,font,brush,x,y) to
draw a string. The string should be drawn with a certain font and
should also have a two pixel border around each letter.
My idea so far is to draw the string twice first in a large size and
then again in another color and a bit... more >>
GDI+ DrawString space between words
Posted by Giedrius at 1/7/2005 6:35:01 AM
Hi,
using DrawString, MeasureString works not as it should on my WinXP
SP2+.NET1.1 latest SP. On Win2003 works fine.
Problem is that same text in a owner drawn grid is drawn with different
spacing between words.
It looks like below (same text just first ends with 1, second ends with 12):
"So... more >>
Repost: DrawString and ellipsis problem ... please help
Posted by Herve Bocuse at 1/7/2005 5:04:30 AM
Hi,
I posted some time ago in December the following message and got no
answer. It is very important to me to solve this problem and I wish
that MVP people or anyone else could study with me this problem. It
could give birth to a wonderful custom control ;)
Thanks in advance, here it is :
... more >>
Convert image to PCX
Posted by dw at 1/6/2005 10:49:06 AM
Hello....
Is there a way to convert an existing image - JPG, GIF, BMP - to a
black-and-white PCX formatted image?
thanks
-wd
... more >>
Can I make a greyscale Graphics object
Posted by Teis Draiby at 1/6/2005 2:17:48 AM
I am working on a painting program for painting height maps. I want the
height information to be a 8 bit greyscale value. When I use the
Graphics.FromImage() method it seems that I can only create Graphics objects
from color bitmaps, not indexed/greyscale bitmaps.
Can Graphics objects only be ... more >>
How are several Invalidate() calls processed???
Posted by Teis Draiby at 1/5/2005 6:16:25 PM
What happens if I call the Invalidate(Rectangle) method several times
between two OnPaint() calls?
- is the resulting invalidated rectangle then added together from each
Invalidate(Rectangle)
- or are the calls queued to be executed later by one OnPaint() per
Invalidate(), causing an overhead i... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
printing rotated WMF
Posted by Andrew Deren at 1/5/2005 1:55:04 PM
I'm trying to print some stuff with GDI+ and also a wmf image on the document.
The wmf image is rotated 90 degrees, but it looks really bad when printed.
When it's not rotated, it looks fine, but when rotated it looks like it is
pixelated. The edges of the lines are really jigged. The other stuf... more >>
Problems with a Image
Posted by Javier at 1/5/2005 11:40:01 AM
Hi!
i have a problem when i want to draw, only, a part of an image. I find a
method (DrawImage()) that it can do it, but my problem is that this method
shows only a part of the image and the rest, it draw black, then when i
execute it the result is a black square and in the middle a part of th... more >>
Owner drawn menus, XP or MS Outlook
Posted by Francis Shanahan at 1/4/2005 11:15:21 PM
Folks,
From googling I can see this has been asked numerous times yet I am unable
to find an answer:
How can I create menus similar to MS Outlook?
Specifically, the gradient menus. I've found and implemented gradients in
the menu items themselves but have not been able to figure out the gra... more >>
drawing a rectangle
Posted by Patrick at 1/4/2005 9:21:03 AM
Dear Ng,
i have a panel. I would like to enable the user to draw his own graphics on
the panel, which is looking like a paper. How can I handle the graphics
elements (e.g. a rectangle) like objects which have to be resized like a
control. Each time I refresh the panel, the elemnts will disa... more >>
PictureBox Problem
Posted by subdueme NO[at]SPAM hotmail.com at 1/4/2005 3:55:35 AM
Hi
No, I'm not handling any picturebox events. I think, it does not
happens with all images... If you're creating graphics inside the
picturebox it seems to behave correctly but when I use
picturebox.image = image.Fromfile() the image flashes everytime I
enter or leave the picturebox... I don... more >>
GDI+ Turning off AntiAlias
Posted by semhelp at 1/3/2005 9:41:02 PM
Is there a way to turn off antialiasing? I've tried smoothingmode.none, but
it doesn't help.
I need to draw 2 rectangles (using a hatchbrush) that have some overlap.
I'd like the result to appear as if single polygon was drawn. With the
antialiasing, I get a different result where the... more >>
Generic Error in GDI+
Posted by JohnPaulBR at 1/3/2005 4:37:01 AM
Hello,
I´m trying to print an image (captured by scanner), using the
System.Drawing.Image.FromHbitmap(IntPtr Hbitmap). When I run the program, it
works fine, I can capture the image. But when I select to print, an unhandled
exception occurs, as follow:
An unhandled exception of type
'... more >>
Creating a GraphicsPath from a Region by hit-testing with Region.IsVisible()
Posted by Marius.Ebel NO[at]SPAM web.de at 1/1/2005 4:07:41 PM
Please excuse my spelling and my grammar, but I'm German.
I have a Region where several figures are combined. I also have the
GraphicsPaths which ware combined in the Region, but I don't know how
to create a procedure which goes along the outline of the region and
adds the points senseful to a... more >>
|