Wrox Home  
Search P2P Archive for: Go

  Return to Index  

ado_dotnet thread: Re: Graphics transforms in GDI+


Message #1 by "Chad Rosenbohm" <chad@n...> on Sun, 3 Feb 2002 18:40:43
Have you found a solution for this problem yet?



I have a similar problem.  I have been trying to work with the GDI+ to 

create a hit hilite on an image with text.  I cannot seem to get the 

correct method to create a transparent yellow rectangle over an image.



Any ideas?



Thanks!



Chad Rosenbohm



> I have a situation where I really need to draw rectangles onto a surface 

> where the Y coordinates are reversed. All objects in my data structure 

are 

> defined as distances from the bottom of the logical graphics area rather 

> than the top. How can I set a global transform that means I don't have 

to 

> write my own transformations?

> 

> Thank you
Message #2 by "Stephen Grant" <stevenjgrant@b...> on Sun, 3 Feb 2002 22:15:42 -0000
I ended up doing my own transformation calculations prior to using the

drawing methods. The documentation is dire. Other than that, using the basic

GDI+ commands is pretty simple. There are some odd variations in what .Net

provides in terms of coordinates - most events provide current mouse

coordinates in terms of the graphics surface but those associated with drag

and drop provide them in screen coordinates. It's pretty much trial and

error figuring out what does what.



Perhaps you could share some of the code you are using?



Steve Grant



----- Original Message -----

From: "Chad Rosenbohm" <chad@n...>

To: "ADO.NET" <ado_dotnet@p...>

Sent: Sunday, February 03, 2002 6:40 PM

Subject: [ado_dotnet] Re: Graphics transforms in GDI+





> Have you found a solution for this problem yet?

>

> I have a similar problem.  I have been trying to work with the GDI+ to

> create a hit hilite on an image with text.  I cannot seem to get the

> correct method to create a transparent yellow rectangle over an image.

>

> Any ideas?

>

> Thanks!

>

> Chad Rosenbohm

>

> > I have a situation where I really need to draw rectangles onto a surface

> > where the Y coordinates are reversed. All objects in my data structure

> are

> > defined as distances from the bottom of the logical graphics area rather

> > than the top. How can I set a global transform that means I don't have

> to

> > write my own transformations?

> >

> > Thank you




$subst('Email.Unsub').




  Return to Index