You need to poke around, first check the pictureType field to see what type of picture the REALbasic picture actually has.

If the type is pictureMacintoshGWorld (assuming you are one a Mac) then you can safely assume that the pictureData contains GWorld, if not then you need to take some steps to convert the picture, or read it as PicHandle or IconHandle.

On Windows you are either dealing with a DIB or HBITMAP (again you have to check each time)

On Linux you get GdkPixmap (always)

Björn


On 13.7.2006, at 16:19, Phil M wrote:

On Jul 13, 2006, at 8:26 AM, Jonathan Johnson wrote:

Most of the structures in the Plugin SDK are all anonymous structures. There are no useful ways to dereference this structure. There are several methods dealing with a REALpicture, which can be found in the docs or headers. Also, REALGet/ SetPropValue and REALLoadObjectMethod can be used to call methods not exposed.

What I would really like to do is get access to the Pixels in the Picture.

After I enabled auto-complete in CodeWarrior I can see the public properties of the REALpictureDescription, and I can see that there is a "pictureData void*" property. Am I able to access the raw bitmap data with this property?

My primary task is to make a duplicate of the existing Picture, and I would like to use the REALBuildPictureFromPictureDescription method to create the copy. Is this possible?
_______________________________________________
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>

Reply via email to