Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Friday, March 7, 2008 12:41:02 AM(UTC)

tigana  
tigana

Groups: Registered
Posts: 21


Hello, i'm using Leadtools 15 with C# language. I have the same problem as posted before.

An Image Not Compatible GDI+ exception appears sporadicaly when we try to and i don't know exactly which kind of images causes this problem.
I found this type of exception :













Image is not GDI+ compatible
   à Leadtools.RasterImage.ChangeToGdiPlusImage(ChangeToGdiPlusImageFlags flags)
   à Leadtools.RasterImage.CreateGdiPlusGraphics()
   ...
Leadtools
System.Drawing.Image ChangeToGdiPlusImage(Leadtools.ChangeToGdiPlusImageFlags)
***


I try Make an image GDI+ Compatible if it's not compatible, and i discovered this error that can provide from a specific image type.

First, can you tell me the image type could cause this exception ?
Do you think it can be a problem due to the version of DLL used (Leadtools.dll 15.0.0.27) ?

Thank you
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Sunday, March 9, 2008 6:47:58 AM(UTC)

Adnan Ismail  
Guest

Groups: Guests
Posts: 3,034

Was thanked: 2 time(s) in 2 post(s)

Microsoft GDI+ supports some types of images, such as 1-bit, 4-bit, 8-bit and 24-bit.
LEADTOOLS supports additional image types that GDI+ does not support directly, such as 3-bit and 7-bit color, and 12-bit grayscale.
This error usually happens if you try to convert a LEAD image to a GDI+ image, but the image type is only supported by LEADTOOLS and not by GDI+.
What is the exact line of code that triggers the problem? Also, do you have a sample source image that triggers it?

Edited by moderator Thursday, October 27, 2016 2:45:25 PM(UTC)  | Reason: Not specified

 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.101 seconds.