Welcome Guest! To enable all features, please Login or Register.



Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, March 26, 2008 1:38:04 AM(UTC)


Groups: Registered
Posts: 4

Is LT 15 supports the DPI feature? if yes then upto how much value i can set and with which API i can do that?
Thanks in advance,


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 : Wednesday, March 26, 2008 6:48:20 AM(UTC)

Adam Boulad  

Groups: Guests
Posts: 3,022

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


an image is loaded in memory by LEADTOOLS, the X and Y DPI are just a pair
numbers. You can set them to almost any value between 1 and infinity. It does not affect the pixel image size.

if you are asking about loading some types of images at a certain DPI value,
such as PDF, in this case, the loading DPI affects the image size. In this
case, LEADTOOLS does not have restrictions on the DPI you set, but the higher
it is, the larger the resulting image will be, and it will require more memory.
This means the final limitation will depend on Windows and your machine resources, such as free memory.

Additional information:
loading an image into the LEADTOOLS Raster toolkits, it is always loaded as pixels (raster) bitmap image.

some types of images, such as BMP, GIF, TIFF and JPEG, the data stored in the
image is originally in pixels, and the DPI is just a number that does not
affect the width and height in LEADTOOLS. This means an image that's 800 pixels
wide and 600 pixels high will always load as 800x600 pixels in LEADTOOLS, regardless of what the DPI resolution values are.

loaded, if the image has DPI values stored in the file, LEADTOOLS will load
these 2 numbers as the XResolution and YResolution members of the BITMAPHANDLE structure.

no values are stored in the file, LEADTOOLS will simply put the value 150 into these 2 members.

you change the values yourself to any number, the actual pixel width and height
are NOT affected automatically. If you want to change them, you must also call the L_SizeBitmap() function.


some other formats, such as PDF (if you own the PDF plug-in) and also for
vector formats (if you own the vector toolkit and load the images as Raster)
the actual Width/Height will depend on the loading DPI, or the rasterization
window size. The image is converted to raster during loading. In the case of
PDF and PostScript the resolution of the loaded files will be 72 by default.
The loading resolution can be changed by using the L_SetPDFOptions, and set the nXResolution and the nYResolution parameters.

after loading, even with PDF and PostScript, the image becomes a raster (pixel)
bitmap, and changing the DPI after that will NOT have any effect on the pixel dimensions.

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.156 seconds.