|
|
News Overview Download Order F.A.Q. More info Support Links Welcome QuickStart ActiveX Control C++ Wrapper J2K_Image open easyDecode selectTiles getMetaData decode close J2K_Frames open getFrames getFrame operators close API Reference General getVersion getLastError getErrorStr getLastErrorStr Unlock Open / Close Open Close Info GetInfo GetInfoEx GetResolutions •GetResDimensions GetMetaData Decoding EasyDecode SelectTiles Decode Cancel Debug StartLogging StopLogging |
J2K_GetResolutionDimensions Use this function to get the dimensions of a resolution level in the J2K image. int J2K_GetResolutionDimensions(void *image, int res_level, int *width, int *height); Parameters image A pointer, obtained from J2K_Open(). res_level Resolution level number, starting from 0 (where 0 means the whole image, 1 means 1/4, 2 - 1/8, etc.). width Pointer to a variable, where the width of a resolution level will be placed. height Pointer to a variable, where the height of a resolution level will be placed.
Return value Returns J2KERR_SUCCESS or an error code if the function has failed. See the list of error codes here. Example
int resolutions=0, rWidth, rHeight; J2K_GetResolutions() |
| 2004-2008 © Alex Saveliev |