|
The default size of the Canvas is the natural, un-cropped size
of the first image drawn on it. We are going to crop the image so
we have to manually set the Canvas size to take this into account.
We also use the Pos parameter to shift the image up and left to
cater for our border width.
[Visual Basic]
ca.Height = rc.Height
ca.Width = rc.Width
ca.DrawFile(inpath, "Pos=-20,-20 SrcRect="
+ rc.String)
[C#]
ca.Height = rc.Height;
ca.Width = rc.Width;
ca.DrawFile(inpath, "Pos=-20,-20 SrcRect="
+ rc.String);
|