Class Image : getSize Method


Size getSize()

Summary

Get the size, in pixels, of the image.


Returns

The Size in pixels.


Examples

//
// adjust the size so it doesn't spill out, and also keep aspect ratio of the image
var rcLocal = new Rect( rc );
var divisor = image.getSize().cx / rcLocal.height();
rcLocal.setWidth( image.getSize().cy / divisor );
image.draw( 0, dc, rcLocal );


See Also

  • Size


    Requirements

    build 1065