
Code : Tout sélectionner
UseJPEGImageDecoder()
UseJPEGImageEncoder()
UsePNGImageDecoder()
UseTGAImageDecoder()
UseTIFFImageDecoder()
Nom.s = OpenFileRequester("","","",0)
LoadImage(0,Nom)
ResizeImage(0,317,407)
CreateImage(1,1358,906)
X.l = (1358 - (317 * 4)) / 5
XX.l = X
Y.l = (906 - (407 * 2)) / 3
YY.l = Y
StartDrawing(ImageOutput())
Box(0,0,1358,906,RGB(255,255,255))
For iy = 1 To 2
For ix = 1 To 4
DrawImage(UseImage(0),XX,YY)
XX + 317 + X
Next ix
YY + 407 + Y
Next iy
StopDrawing()
SaveImage(1,GetPathPart(Nom) + "photo.jpg",#PB_ImagePlugin_JPEG,10)
FreeImage(1)
FreeImage(0)