realbasic-plugins
[Top] [All Lists]

Re: REALSelectGraphics

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: REALSelectGraphics
From: Scott Wagner <scott at paulmairdesign dot com>
Date: Fri, 30 Jun 2006 13:16:25 -0500
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <916CC581-CAD1-44FD-B45D-3134E4F1A0BA at coficio dot com>
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>


<Prev in Thread] Current Thread [Next in Thread>