realbasic-plugins
[Top] [All Lists]

REALSelectGraphics

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: REALSelectGraphics
From: Alexander Cohen <alexander dot cohen at coficio dot com>
Date: Fri, 30 Jun 2006 14:05:51 -0400
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
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>


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