Avez vous un bout de code qui fait ceci ?
Pour le moment je fais comme ceci, mais ça ne fais pas comme je veux
Suis je suis la bonne voie ?
Code : Tout sélectionner
ScreenXSize=800
ScreenYSize=600
PictureWidth = ImageWidth()
PictureHeight = ImageHeight()
kx.f = PictureWidth / ScreenXSize
ky.f = PictureHeight /ScreenYSize
kx.f = ScreenXSize / PictureWidth
ky.f = ScreenYSize / PictureHeight
If kx < ky
PictureWidth = PictureWidth * kx
PictureHeight = PictureHeight * kx
Else
PictureWidth = PictureWidth * ky
PictureHeight = PictureHeight * ky
EndIf
ImageID = ResizeImage(0, PictureWidth, PictureHeight,#PB_Image_Smooth)