Versions des environnements
>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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement