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 : Tuesday, January 12, 2010 9:14:04 PM(UTC)

Xzturui  
Xzturui

Groups: Registered
Posts: 2


Hi, I'm using Imaging pro 16.5 and Delphi(use CDll), i want to Converts a Image(rgb,Jpg,24bits) from sRGB space(Embedded) to AdobeRGB space,I use L_LoadBitmap to Load the image , get a value Pbitmap (type:pBITMAPHANDLE ), now Pbitmap.BytesPerLine=4728 , Clearly its a aligned by 4 bytes, so i call L_ClrConvertToBitmap(ClrHandle,pBitmap.pData,@pBitmap,sizeof(BITMAPHANDLE),pBitmap.Width,pBitmap.Height,4,4) , but the Results image is error, i try to call L_ClrConvertToBitmap(ClrHandle,pBitmap.pData,@pBitmap,sizeof(BITMAPHANDLE),pBitmap.Width,pBitmap.Height,0,3) , oh,the Results image is very well .
why ???
 

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 : Wednesday, January 13, 2010 7:51:56 AM(UTC)

Adnan Ismail  
Guest

Groups: Guests
Posts: 3,040

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

Our BITMAPHANDLE structure only works with LEAD bitmaps in memory, which can be only RGB or special cases of RGB (such as grayscale).
It does not support other color spaces.
The color conversion module only works with pixel buffers. Please check the C DLL demo for this module to see how you can work with these buffers.

 
#3 Posted : Wednesday, January 13, 2010 6:21:28 PM(UTC)

Xzturui  
Xzturui

Groups: Registered
Posts: 2


A image file,such as "a.jpg" , is RGB(24bits) format and Embedded in a sRGB ICC , now , i want to Converts this image's color space to AdobeRGB(AdobeRGB1998.icc) , please tell me how to do this with LEAD TOOLS( imaging pro 16.5 Cdll API)?
 
#4 Posted : Thursday, January 14, 2010 4:40:14 AM(UTC)

Adnan Ismail  
Guest

Groups: Guests
Posts: 3,040

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

You will need to read the pixel data (using L_LoadBitmap) and the input profile (using L_LoadICCProfile) from the input image.
Then load the output profile using the L_FillICCProfileFromICCFile function and perform conversion with the USE_CUSTOM_ICC method.
Please refer to the "Conversion Given an ICM Profile" and "CONVERSION_PARAMS" help topics in our Color Conversion help fi
 
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.102 seconds.