Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GdiPlusX - Images Stretch,Clip,Isometric
Message
De
13/01/2008 19:50:48
 
 
À
12/01/2008 05:16:09
Information générale
Forum:
Visual FoxPro
Catégorie:
VFPX/Sedna
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01281317
Message ID:
01281504
Vues:
11
>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
Fil
Voir

Click here to load this message in the networking platform