This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, August 27, 2007 6:38:02 AM(UTC)
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
#2
Posted
:
Monday, August 27, 2007 12:50:43 PM(UTC)
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)
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)
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.