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, August 27, 2007 6:38:02 AM(UTC)
cornellbox

Groups: Registered
Posts: 2


Hi,

I need to load portions of an image without loading the entire image. Is it possible?

I know that wavelet based formats allow such a way of working, but I don´t know if LeadTools has any routine to do so based on its own implementations of Jpeg2000 or ECW.

Thx
 

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, August 27, 2007 12:50:43 PM(UTC)

BoydP  
Guest

Groups: Guests
Posts: 3,022

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

What LEADTOOLS version and interface (COM, OCX, API, etc.) are you using?


You want to display only portions of an image and not the entire image, correct?
 
#3 Posted : Monday, August 27, 2007 11:14:00 PM(UTC)
cornellbox

Groups: Registered
Posts: 2


I´m using v.15 c++ classes.

Correct.I want to load only portions not the full image.
 
#4 Posted : Thursday, August 30, 2007 9:20:59 AM(UTC)

BoydP  
Guest

Groups: Guests
Posts: 3,022

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

The following code will load a specified rectangle of an image (any format).

LFile file;
LBitmapBase bitmap;

file.SetBitmap(&bitmap);
file.SetFileName(TEXT("c:\\image1.j2k"));  //replace this with path to your image
nRet = file.LoadTile(0,0,500,500);  //left,top,width,height on the source bitmap
if(nRet != SUCCESS)
  return FALSE;

The region you specified will now be loaded in to the bitmap object.


If you have any other questions please feel free to ask.
 
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-2024, Yet Another Forum.NET
This page was generated in 0.053 seconds.