Title : Check if an image have good size
Author : Filax
Posted : 1+ years ago
Description : Test if an image have good size Code : If Proc_GetImageSize("C:TmpTest.bmp",512,512) Then
; Good
Else
; Bad
endif
Function Proc_GetImageSize(Filename$,SizeX,SizeY)
If FileType(Filename$)=1 Then
Tmp_Image=LoadImage(Filename$)
If ImageWidth(Tmp_Image)<>SizeX And ImageHeight(Tmp_Image)<>SizeY Then
FreeImage Tmp_Image
Return False
Else
FreeImage Tmp_Image
Return True
EndIf
Else
Return False
EndIf
End Function
Comments :
Agamer(Posted 1+ years ago)
I could see this being useful but you might want to exsplain what good size acturly means as I thought It ment file size but it acturly means dimensions.Very simple but it is useful!Could be used to make sure when pepole alter the images to your game that they will still look right as it will only show if it is the right dimensions!Thanks.
Filax(Posted 1+ years ago)
Nothing