Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TCanvas.StretchDraw

Status
Not open for further replies.

siu01jam

Programmer
Oct 2, 2003
12
GB
I have an image at a given height and width and i am trying to StretchDraw it onto another canvas.

With size do
begin
Left:= 0;
Top:= 0;
Right:= StrToInt(Edit1.Text);
Bottom:= StrToInt(Edit2.Text);
end;

ResizedImage.Height:= Size.Bottom;
ResizedImage.Width:= size.Right;

ResizedImage.Canvas.StretchDraw(size, ResizedImage.Picture.Graphic);

The ResizedImage is set to an initial size, and when the stretchdraw occurs it looks as if it has been enlarged/reduced but the ResizedImage.picture.width and height retain the same height and width as its previous state. ResizedImage only contains part of the enlarged image. Does anyone know how I can resolve this issue?

Thanks in Advance . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top