Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

JPG file, Load ,L_AutoColorLevelBitmap, Save use API with Delphi ?
Started by flashvnn at 09-05-2008 15:31. Topic has 1 replies.

Print Search « Previous Thread Next Thread »
  09-05-2008, 15:31
flashvnn is not online. Last active: 9/5/2008 8:20:41 PM flashvnn

Not Ranked
Joined on 09-05-2008
Posts 1
JPG file, Load ,L_AutoColorLevelBitmap, Save use API with Delphi ?
Reply Quote
Hi
i'm using LEADTOOLS Raster Imaging Pro 15
Can you give me code how to use API Delphi to load jpg file then use L_AutoColorLevelBitmap function then save it to new file.
it will processing in code, dont need open dilalog to open or save file

look like code bellow
function DelphiAutocolor(jpg1:String,jpg2:String):int;
begin
-->Load
-->L_AutoColorLevelBitmap
-->Save
end;

Thank

   Report 
  09-07-2008, 10:05
Adnan Ismail is not online. Last active: 11/20/2008 4:22:06 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,271
Re: JPG file, Load ,L_AutoColorLevelBitmap, Save use API with Delphi ?
Reply Quote
You can simply load the image using the L_LoadBitmap function, apply the L_AutoColorLevelBitmap on the loaded bitmap after that using the L_SaveBitmap function to save the bitmap.

You can find a sample code that load the image then apply the L_AutoColorLevelBitmap function in the "L_AutoColorLevelBitmap" help topic in our LEADTOOLS Raster Imaging API help file. All you need to add is the call for the L_SaveBitmap before you free the bitmap.
Adnan Ismail
LEADTOOLS Technical Support

   Report 
Post
LEAD Support Fo... » Developer » Image Processin... » JPG file, Load ,L_AutoColorLevelBitmap, Save use API with Delphi ?

Powered by Community Server, by Telligent Systems