LEADTOOLS Support
Imaging
Imaging SDK Questions
Changing an images DPI while retaining the same image size
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, August 29, 2007 7:53:46 AM(UTC)
Groups: Registered
Posts: 6
Hi I am using version 15, .Net libraries, c# to be exact. I want to be able to take images that are uploaded by my users, usually at 72 dpi, and convert them to 150 dpi, while retaining the same height/width. Can you point me in the right direction?
Thanks,
Allan Hensley
#2
Posted
:
Thursday, August 30, 2007 12:47:14 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Hello,
Try to change the image resolution after loading it by using the MyRasterImage.XResolution and MyRasterImage.YResolution properties as follows:
+-----------+
RasterImage MyRasterImage = codecs.Load(FileName);
MyRasterImage.XResolution = 150;
MyRasterImage.YResolution = 150;
+-----------+
Please let me know if this helps.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
LEADTOOLS Support
Imaging
Imaging SDK Questions
Changing an images DPI while retaining the same image size
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.