>Dear All,
>
>I want to render picture in given area (rectangle or region) of ImageCanvas in 3 ways, similar to what VFP image object does with property Stretch ;
>
>0 - Clip
>1 - Stretch
>2 - Isometric
>
>Any help (sample) is greatly appreciated.
>
>TIA
>Sergio
Hi Sergio,
Supposing you have an image object
loImg = .Bitmap.FromFile(getpict())
* 0 - CLIP
This.oGfx.DrawImageUnscaled(loImg, 0, 0)
* 2 - STRETCH
This.oGfx.DrawImage(loImg, This.Rectangle)
or
This.oGfx.DrawImage(loImg, 0, 0, This.WIdth, This.Height)
* 1 - CLIP
This is also very easy...
I have a sample atr work, and I hope to send you tomorrow
Hope this helps for the moment...
Cheers
Cesar
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only