ajstarks / openvg

Tools for exploring OpenVG
Other
414 stars 85 forks source link

VGImage createImageFromJpeg - can width/height of image be made global to allow accessing #51

Open steverpi opened 8 years ago

steverpi commented 8 years ago

Thanks for the update to allow accessing VGImage createImageFromJpeg() which now allows me to load in jpgs into VGimage bufs. I need to find the width and height of the images once loaded in and see that this section of code is used in your routine:

width = jdc.output_width;
height = jdc.output_height;

If the above local width and height were made global, they could be accessed after calling createImageFromJpeg() - or is there another way to find these values. Thanks

steverpi commented 8 years ago

The reason for the request is to allow reading in multiple jpg images and as each width and height is known, they can be correctly positioned and aligned on the screen without fear of overwriting each other. In addition, are there any openvg/OpenVG functions which can be called to return these values?