QPix v2.2x

An image database step by step


Chapter index | Step: 1 - 2 - 3 - 4 - 5 - 6

Step 3: Getting image properties


Being sure we're dealing with an image file that contains valid image data, we can get the dimensions, color depth and horizontal and vertical resolutions of the image. To get the image properties directly from an image file, we use the command QPx_GetImageFileInfo:

    `Get information about the image

    C_LONGINT($width;$height) `Width and height
    C_LONGINT($depth) `Color depth
    C_LONGINT($hRes;$vRes) `Resolution

    $error:=QPx_GetImageFileInfo($imagePath;$width;$height;$depth;$hRes;$vRes)

    If ($error=qpx_noErr)

     ...

    End if

Goto Step 4