Is there a way to determine the width/height of any given gfx buffer without knowing what type of buffer it is - ie canvas/image/graphics ? I know I can use imagewidth/height for an image and clientwidth/height for the others - but I'd like a single solution for all types so I can pass any gfx buffer's handle to a routine and work out the size.
I have seen in the docs the commands lockedpitch/format/pixels - and I think these might be the commands to use - but I'm not sure how to interpret the values these commands return. Any help gratefully received. Thanks... Tim.
I have seen in the docs the commands lockedpitch/format/pixels - and I think these might be the commands to use - but I'm not sure how to interpret the values these commands return. Any help gratefully received. Thanks... Tim.