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 : Monday, November 16, 2009 6:57:46 PM(UTC)

zzzkan  
zzzkan

Groups: Registered
Posts: 8


I usually load bitmap image follow way.

///////////////////////////////////////////

LBitmapBase BitmapBase;
BitmapBase.SetFileName(TEXT("d:\\image.bmp"));
BitmapBase.Load(0, ORDER_BGR, NULL);

//////////////////////////////////////////

but, Can I load bitmap image by resource ID ?

 

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 : Monday, November 16, 2009 6:59:57 PM(UTC)

zzzkan  
zzzkan

Groups: Registered
Posts: 8


Environment;

VS2005(MFC)
leadTools V 16.5
Raster Imaging C++ Class Library
 
#3 Posted : Tuesday, November 17, 2009 12:13:01 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

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

We don't have a function that loads bitmap image by resource ID directly, but depending on the resource type, you could do it in other ways. For example, if you store a complete image file into a resource, you can load the resource into a memory buffer then use our functions that load an image file from memory such as LBitmapBase.MemoryFile()->LoadMemory method.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
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.060 seconds.