LEADTOOLS Support
General
General Questions
[Question] I wish to make thumbnail quickly using Raster Imaging Pro..
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, July 12, 2006 10:21:12 PM(UTC)
Groups: Registered
Posts: 1
Question!!(Sorry, I can't use english well )
- make thumbnail (source is 500MB tiff file, or raw file)
- use Raster Imaging Pro .Net ver 14.5
- don't loading all image, using minimum memory possibly (ex. envi image viewer)
- fast possiblly
How can I do?
#2
Posted
:
Friday, July 14, 2006 11:21:11 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 764
The following VB.NET code sample loads a large image file (105MB in my test) and saves out an 8KB 50x50 thumbnail. This took about 8 seconds to run on a n AMD 1500 GHz with 512 RAM. Of course your 500MB file will take longer, but if it is has multiple pages and you only want to make a thumbnail of the first page, it will not take as long.
'load
img = codecs.Load("D:\test images\really big.tif", 0, CodecsLoadByteOrder.BgrOrGray, 1, 1)
'change image size
img2 = New RasterImage(RasterMemoryFlags.Managed, 50, 50, img.BitsPerPixel, img.Order, img.ViewPerspective, img.Palette, Nothing)
Dim r As New ResizeCommand(img2, RasterSizeFlags.Normal)
r.Run(img)
'save
codecs.Save(img2, "d:\junk folder\thumb.tif", RasterImageFormat.Tif, 24)
LEADTOOLS Support
General
General Questions
[Question] I wish to make thumbnail quickly using Raster Imaging Pro..
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.