PNG’s width and height are always bytes 16-24, so I think that if you open the file to read bytes and check bytes 16 to 24 you may be able to get what you want.
I can't remember any other way do check that, but eventualy there will be other methods.
Absolutely not. The BitmapPlus solution is probably a lot faster than the solution given above (the RAF library is so slow that it is very easy to outperform it with anything else) and it works with any recognized image format (JPG or PNG). It does not convert or load anything. It just reads and decodes the header of the file.
Sub Activity_Create(FirstTime As Boolean)
bmp.Initialize(File.DirAssets,"mypng.png")
Log("BMP width: " &bmp.Width)
Log("BMP height: " &bmp.Height)
End Sub
Sub Activity_Create(FirstTime As Boolean)
bmp.Initialize(File.DirAssets,"mypng.png")
Log("BMP width: " &bmp.Width)
Log("BMP height: " &bmp.Height)
End Sub