all groups > dotnet drawing api > january 2006 > threads for january 15 - 21, 2006
Filter by week: 1 2 3 4 5
Path drawn rectangle not placed correctly?
Posted by **Developer** at 1/21/2006 1:28:35 PM
I create a path which is a rectangle defined by (1,1) and lower right at
(10,7.5)
Using a pen 1 inch wide I
The outside of the rectangle is 1/2 inch from the left and the top.
And 1 inch from the right and the bottom.
Does that make sense?
Can you tell me what the rules are?
Is the... more >>
Indexed Pixel Format Exception
Posted by Calvin Willman at 1/20/2006 3:48:32 PM
I'm trying to create a Bitmap from a file (tried Gif, Png, Jpeg), but am
getting folliwng exception.
A Graphics object cannot be created from an image that has an indexed pixel
format.
How do I either deal with this changing the existing format when loading it
in the Bitmap constructor, ... more >>
Image.Save() problem
Posted by Lloyd Dupont at 1/20/2006 3:57:45 AM
I'm a bit puzzled, I probably did something wrong, anyway just checking.
Should the code below work? I get a generic GDI+ error on Save() ?!?
(EncodeParameter null ?!?)
Note: this code is executed in a web server.
Bitmap bmp = new Bitmap(width, height, PixelFormat.Format32bppArgb);
// init... more >>
Mouse Click on Graphic Image
Posted by Duane at 1/19/2006 7:21:04 AM
If I create draw several images (ex: fillrectangle), is there any way of
determining if a particular rectangle has been clicked?
Thanks
Duane... more >>
REGION'ing a button based on the Outline of an image ...
Posted by Vipul Pathak at 1/18/2006 6:53:29 PM
Hi,
In an application, I want to make my buttons some thing like this:
1) Draw an Image (with some background areas within it) on all buttons.
2) REGION the buttons, such that only the ForeGround area responds to
mouse clicks and the Background area isn't visible.
Any Idea for any one, ... more >>
Inverting Text
Posted by Mario Vázquez at 1/18/2006 12:03:26 PM
Hi,
I've wrote a progress bar control and i'm trying to write the percent
progression into it. I would like to do that the percent text change its
color while de progress bar is passing over it.
Is there any easy way (or not) to do this?
Tanks,
MVR
... more >>
Drawing on a MonthCalendar control
Posted by David Veeneman at 1/17/2006 7:13:25 PM
I want to draw on a MonthCalendar control. I see that the control has a
CreateGraphics() method, so I can get its Graphics object. But I can't find
a suitable event to hook into to do the drawing. Does anyone have any
suggestions, or can you point me to an example? Thanks in advance.
--
D... more >>
image quality problem
Posted by ex-neo-con NO[at]SPAM bonbon.net at 1/17/2006 5:58:26 PM
I've been attempting to draw a simple equilateral
triangle with 10 tick marks on each side. I'm able
to draw one that looks fine on a monitor, but the same
triangle looks lousy when I print it. What am I missing?
Here's the code:
Bitmap bmp = new Bitmap(600, 600);
Graphics g = Graphics... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
BUG: Gdiplus Metafile GetHENHMETAFILE returns HMETAFILE instead of HENHMETAFILE for ALDUS Placeable Metafiles
Posted by Michael Phillips, Jr. at 1/17/2006 4:26:51 PM
The MSDN documentation for Gdiplus states that GetHENHMETAFILE returns
a HENHMETAFILE handle. However if the Metafile was created with an ALDUS
Placeable Metafile, then GetHENHMETAFILE actually returns a HMETAFILE
handle.
Because of this undocumented behavior, CopyEnhMetaFile,
Metafil... more >>
create a clone of an existing Bitmap without using the clone method.
Posted by **Developer** at 1/17/2006 3:05:05 PM
DrawImage(Image, Point)
Draws the specified Image object, using its original physical size, at the
specified location.
I just want the image drawn on the bitmap with the new pixels simply a copy
of the old pixels.
That is, pixel for pixel, the original and the drawn images should be the... more >>
Does Image.FromFile alway produce a bitmap no mater the format of the file?
Posted by **Developer** at 1/17/2006 2:17:48 PM
If the files not a metafile does
Dim zz As Image = Image.FromFile(imageFileName) '
always produce a bitmap no mater the format of the file?
thanks
... more >>
PrinterSettings: SetHdevmode/SetHdevnames
Posted by MLM450 NO[at]SPAM hotmail.com at 1/17/2006 1:14:00 PM
Does anybody know how to get these functions to work properly?
I have an unmanaged C++ program that presents a print dialog and then
passes my C# program the DEVMODE and DEVNAMES handles. When I try to
use them in SetHdevmode and SetHdevnames, I get incorrect results. For
example, the printer ... more >>
Marshal.Copy and copying a Bitmap
Posted by Jerry Q at 1/16/2006 6:14:56 PM
Hello,
Where could aI find a sample code which would show how to use
Marshal.Copy to copy a "graphics image" to pixel based image?
There is a MS (really) quick supportpage for that
http://support.microsoft.com/kb/814675/en-us
but it is too approximate for anything.
Cheers!
... more >>
Changing Font mid line
Posted by John Toop at 1/16/2006 3:48:58 PM
Hi, there. I was wondering if anyone has any ideas about how to change
fonts. I'd like to display text such as the following (pretend you
understand html)
Mary had a <b>little</b> lamb.
Here are the steps as I see them. Tell me if I'm missing something much
simpler please.
1-Setup a R... more >>
Question about the OnPaint method
Posted by MariusI at 1/16/2006 9:05:02 AM
Can somebody explain why the client-rectangle which should be repainted is
provided as a member of the PaintEventArgs instead of the clip region of the
graphics object? Bonus question: what is the int-value of the CS_OWNDC style?... more >>
|