Hi, im using the following code to get the port of a graphics object
in a MachO plugin, then im getting the pixmap and the base address.
It works fine except that it always give me the base address of the
complete screen. Any ideas what might be going on. I've tested with
many different graphics object coming from canvases and pictures and
i always get the same results.
GrafPtr oldPort, newPort;
PixMapHandle pixMap;
GetPort(&oldPort);
REALSelectGraphics( graphics );
GetPort(&newPort);
pixMap = GetGWorldPixMap( newPort );
LockPixels( pixMap );
unsigned char* pixMapBase = (unsigned char*)GetPixBaseAddr(pixMap);
AC
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>