Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
kalyani
Posted - Apr 18 2016 : 02:01:11 We are facing issue with StretchDraw function. We are trying to print one image on canvas. we are applying scale to that image according to space which we have. But after drawing this image with StretchDraw function, image is getting stretched more in width according to available space. So the image we are getting are not in the proper dimensions. StretchDraw is not working properly at all. What to do o get image in proportion.
kk
5 L A T E S T R E P L I E S (Newest First)
xequte
Posted - Apr 18 2016 : 17:13:56 Hi
This is more of a TCanvas than an ImageEn question.
It looks like you are treating the Rect.Right and Bottom values as width and height, i.e. it should be:
with uCurCanvas do begin try try if (FileExists(FilePath)) then begin
LoadImageFromFile(FilePath);
if (PrintImageRequest.PrintWithRatio) and (ImageEn.IsEmpty = false) then begin lRatio := MmToPxY(imageParameter.Bottom) / MmToPxX(imageParameter.Right);