|
|
 |
fbmachines$2007050 fbmachines 02/22/2007 :: 00:09
Registered
| | Hello, I am trying to add an image being viewed in a gdveiwer to a standard vb.net 2005 printdocument. The code I am using (and would like to continue to use) is:
e.Graphics.DrawImage(image, x, y, width, height)
Where image is the gdviewer image should go but it isn't in a standard "system.drawing.image" format. I can't figure out how to do this or convert this, I have seemingly tried everthing. I know it is something probably very simple but I am going crazy.
Also, are there future plans to include something like "picturebox1.image" to the the gdviewer or gdpicture in a direct "system.drawing.image" format to access the image? I know there is the getnativeimage function but it seems there could be a better way.
BTW I am a new user of GDPicture Pro 2.9.0 and looking forward to 3.0!!! Thanks | |
 |
Loïc$2006306 Loïc 02/22/2007 :: 11:14
Registered
| | Hi,
Your suggestion is verry good but unfortunately the gdpicture pro is an ActiveX control!
Consequently it does not use the .net framework classes. It is impossible for me to creates a system.drawing.image abstract base class to access to the image data.
The GetNativeImage method retuns a gdiplus image handle which can be used with the gdiplus flat API only.
Remark: In the 3.0 release (for 28 February) there will be a new GetHBitmap() method into the cGdPicture class.
An hBitmap can be passed into the contructor methods of the system.Drawing.Image classe.
Best regards,
Loïc Carrère | |
 |
fbmachines$2007050 fbmachines 02/22/2007 :: 13:31
Registered
| | Thanks for your reply Loic. I look forward to try it in v3.0.
| |
 |
fbmachines$2007050 fbmachines 02/22/2007 :: 13:34
Registered
| | Also, are there any future plans to create a .net version of your control? | |
 |
Loïc$2006306 Loïc 02/26/2007 :: 09:12
Registered
| | Hi,
There is no yet any plan but I think a new project will be comming at the end of this year.
Best regards,
Loïc Carrère | |
 |
fbmachines$2007050 fbmachines 02/28/2007 :: 01:24
Registered
| | Hello Loïc, The hBitmap works as advertised, It solved my issues! Thanks, Corey | |