How do I import an image from a GdPicture object to a System.Drawing.Bitmap object within Visual Studio .NET (C# and VB.NET)?
– With VB.NET: Dim MyImagingObject As New GdPicturePro5.cImaging MyImagingObject.CreateImageFromFile(“c:\test.jpg”) Dim MyPictureObject As System.Drawing.Bitmap = Bitmap.FromHbitmap(MyImagingObject.GetHBitmap) – With C#: GdPicturePro5.cImaging MyImagingObject = new GdPicturePro5.cImaging(); MyImagingObject.CreateImageFromFile(“c:\\test.jpg”); Bitmap MyBitmap = Bitmap.FromHbitmap((new IntPtr(MyImagingObject.GetHBitmap()))); Note: For .NET application development, it is highly recommended that you use one of the GdPicture.NET editions.
Related Questions
- How do I import an image from a GdPicture object to a System.Drawing.Bitmap object within Visual Studio .NET (C# and VB.NET)?
- Can I add C# or VB.NET functionality to Delphi Prism with the Visual Studio Express products from Microsoft?
- Why do I see the point object grayed (not allowed) in the Import menu of AddMagMap?