ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How to crop 72dpi image into 300dpi?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

dracola

Argentina
37 Posts

Posted - Oct 05 2014 :  01:47:57  Show Profile  Reply
I have 72 dpi image that load with imageenview.
How to crop selected area in the image into 300 dpi image?

and how to make the selected area fix, like i want to crop image used for id card that have size 30 x 40 mm, or 40 x 60 mm with 300dpi
and paste cropped image in a new image size 1000 x 1500 mm (300dpi) in a exact position?

i use this to crop teh image.

if ( imageenview1.Selected ) then
ImageEnView1.Proc.CropSel;

Thank's





xequte

39142 Posts

Posted - Oct 08 2014 :  18:43:13  Show Profile  Reply
Hi

After cropping the image to a specific size you can set its DPI using:

http://www.imageen.com/help/TIOParamsVals.Dpi.html

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

w2m

USA
1990 Posts

Posted - Oct 08 2014 :  19:01:17  Show Profile  Reply
Nigel,

Is it better to use ChangeResolution?

TImageEnView.ChangeResolution

Declaration
procedure ChangeResolution(NewDPI: Integer; ResampleFilter: TResampleFilter);

Description
ChangeResolution changes the DPI of the image, resampling it and setting the new DPI values.
You should ensure the source DPI contains valid values before calling ChangeResolution.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

xequte

39142 Posts

Posted - Oct 09 2014 :  18:59:28  Show Profile  Reply
Hi Bill

Yes, that is another good option.

Working with DPI is rather a headache. 300DPI = 762 Pixels per CM, so for an image of 1000 x 1500 MM (100 x 150 CM, for our American readers ;-) you need not only set the DPI to 300, but also resize the image to 76,200 x 114,300 pixels.

Your smaller images of 30x40 mm, must be set to 300 DPI and resized to 2286x3048, and for 40x60 mm, set to 300 DPI and resize to 3048x4572.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

dracola

Argentina
37 Posts

Posted - Oct 15 2014 :  20:06:04  Show Profile  Reply
thank's for fast respon ^_^
i think i rather play in pixel than...
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: