Print a selected portion of an image

Discussions about image processing and document imaging.
Post Reply
bpabmeyer
Posts: 20
Joined: Tue Oct 07, 2008 4:32 pm

Print a selected portion of an image

Post by bpabmeyer » Thu Nov 03, 2011 11:33 pm

I need to know how to print a section of an image. I currently use this method

ImageArea = oGdPictureImaging.CreateClonedGdPictureImageArea(m_ImageID, GdViewer1.GetRectLeftOnDocument, GdViewer1.GetRectTopOnDocument, GdViewer1.GetRectWidthOnDocument, GdViewer1.GetRectHeightOnDocument)

the problem with this method is that the image stays the same size as it is on the current image. I want to know if there is anyway I can blow up the image to make it more viewable. I realize that some pixelation could occur depending on the image itself, but most of our images pixelation wouldn't occur.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Print a selected portion of an image

Post by Loïc » Fri Nov 04, 2011 10:59 am

Hi,

Your method is correct. However, I don't understand your problem with it. Could you try to explain it again ?

Kind regards,

Loïc

greenware
Posts: 16
Joined: Tue Jan 10, 2012 7:15 pm

Re: Print a selected portion of an image

Post by greenware » Tue Feb 07, 2012 5:05 pm

I think this might be what you are looking for (if I understand what you are asking):

dim iHeightPixel as integer = 5 * 300 'set to 5 inches at 300 dpi
oGdPictureImaging.ResizeHeightRatio(ImageArea , iHeightPixel, Drawing2D.InterpolationMode.HighQualityBicubic)

or use oGdPictureImaging.ResizeWidthRation or oGdPictureImaging.Resize - based on your needs.

(sorry, just realized that this was an old post...but maybe it will help someone else)

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Print a selected portion of an image

Post by Loïc » Tue Feb 07, 2012 5:23 pm

Hum.. I think you got it John :)

I did not understand the problem in this way.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest