Jump to content

height and width of an image


Recommended Posts

Syntax of _GDIPlus_ImageGetWidth or _GDIPlus_ImageGetHeight should look like this:

_GDIPlus_Startup ()
    $BMPBuff1 = _GDIPlus_BitmapCreateFromFile(...) ;<<< This part depends from where you take image
    $iX = _GDIPlus_ImageGetWidth ($BMPBuff1)
    $iY = _GDIPlus_ImageGetHeight ($BMPBuff1)
    _GDIPlus_ImageDispose ($BMPBuff1)
    _GDIPlus_ShutDown ()

Another question is: are you talking about *.bmp picture or something else, like *.jpg?

Edited by Makaule
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...