i have never used this before but is there a way to set it as the
graphics your after or just the piece of the screen you are after.
sorry for the ignorance.
Scott
On Jun 30, 2006, at 1:05 PM, Alexander Cohen wrote:
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>
_______________________________________________
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>