FB II Compiler

PG PRO

Debugging

Memory

System

Mathematics

Resources

Disk I/O

Windows

Controls

Menus

Mouse

Keyboard

Text

Fonts

Drawing

Sound

Clipboard

Printing

Communication

ASM

Made with FB

DRAWING

Get the dimensions of a PICT


myRect;8 = [pictHndl&] + _picFrame

Yeah, that looks a little arcane. The first two bytes of the PICT handle are no longer used (they used to contain the size of the picture). The next eight bytes of the handle are the picture's rectangle. So if you look two bytes in to the handle, that's your picture's dimensions.

Mars