Rotando imágenes con la clase GDI+ de VFP 9
Visual Fox Pro, Trucos Comentarios ( 0 ) »
#Define
RotateNoneFlipNone 0
#Define
Rotate90FlipNone 1
#Define
Rotate180FlipNone 2
#Define
Rotate270FlipNone 3
#Define
RotateNoneFlipX 4
#Define
Rotate90FlipX 5
#Define
Rotate180FlipX 6
#Define
Rotate270FlipX 7
Local cOrigen, cDestino
cOrigen = Getpict("jpg;gif;bmp")
cDestino = JustPath(cOrigen)+"\Rotada_"+JustFname(cOrigen)
oImg = Newobject("GpImage", HOME()+"ffc\_gdiplus.vcx")
With oImg
.CreateFromFile(cOrigen)
.RotateFlip(Rotate180FlipNone)
.SaveToFile(cDestino,"image/jpeg")
EndWith
Por: David Amador T