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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How to crop 72dpi image into 300dpi?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
dracola Posted - Oct 05 2014 : 01:47:57
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





4   L A T E S T    R E P L I E S    (Newest First)
dracola Posted - Oct 15 2014 : 20:06:04
thank's for fast respon ^_^
i think i rather play in pixel than...
xequte Posted - Oct 09 2014 : 18:59:28
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
w2m Posted - Oct 08 2014 : 19:01:17
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
xequte Posted - Oct 08 2014 : 18:43:13
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