realbasic-plugins
[Top] [All Lists]

Re: Templates and other questions

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: Templates and other questions
From: Björn Eiríksson <bjorn at einhugur dot com>
Date: Thu, 13 Jul 2006 18:13:46 +0000
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <B7458FB5-9811-4175-B710-0A4992504AE4 at mobleybros dot com> <EE0EEE94-B5BD-483C-917E-042C67D67244 at realsoftware dot com> <9CED32A5-576D-4482-AD91-8321A09856A9 at mobleybros dot com>
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>


From  Thu 13 Jul 2006 20:45:08 +0200
Return-Path: <realbasic-plugins-bounces at lists dot realsoftware dot com>
X-Original-To: listarchive at realsoftware dot com
Delivered-To: listarchive at realsoftware dot com
Received: by xmail.realsoftware.com (Postfix, from userid 1037)
        id D0AB28173CA; Thu, 13 Jul 2006 11:45:30 -0700 (PDT)
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on
        www.realsoftware.com
X-Spam-Level:
X-Spam-Status: No, score=-2.6 required=4.5 tests=AWL,BAYES_00 autolearn=ham
        version=3.1.1
Received: from lists.realsoftware.com (lists.realsoftware.com [209.198.132.125])
        by xmail.realsoftware.com (Postfix) with ESMTP id 2F4478173BF;
        Thu, 13 Jul 2006 11:45:26 -0700 (PDT)
Received: from lists.realsoftware.com (localhost [127.0.0.1])
        by lists.realsoftware.com (Postfix) with ESMTP
        id 07891137CD70; Thu, 13 Jul 2006 13:45:17 -0500 (CDT)
X-Original-To: realbasic-plugins at lists dot realsoftware dot com
Delivered-To: realbasic-plugins at lists dot realsoftware dot com
Received: from smtprelay06.ispgateway.de (smtprelay06.ispgateway.de
        [80.67.18.44])
        by lists.realsoftware.com (Postfix) with ESMTP id 0F25C137CD60
        for <realbasic-plugins at lists dot realsoftware dot com>;
        Thu, 13 Jul 2006 13:45:09 -0500 (CDT)
Received: (qmail 10477 invoked from network); 13 Jul 2006 18:45:08 -0000
Received: from unknown (HELO [192.168.1.80]) (363246 at [84 dot 175 dot 108 dot 
240])
        (envelope-sender <support at monkeybreadsoftware dot de>)
        by smtprelay06.ispgateway.de (qmail-ldap-1.03) with SMTP
        for <realbasic-plugins at lists dot realsoftware dot com>;
        13 Jul 2006 18:45:08 -0000
To: realbasic-plugins at lists dot realsoftware dot com (REALbasic Plugins)
In-Reply-To: <D08665A2-393B-4D23-9EC4-FE79FE59EFCA at realsoftware dot com>
From: support at monkeybreadsoftware dot de (Christian Schmitz)
Date: Thu, 13 Jul 2006 20:45:08 +0200
Message-ID: <1hifllk dot zqku5a192rx0xM%support at monkeybreadsoftware dot de>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Organization: Monkeybread Software Germany
X-Face: nrf3>{WQ6c&r+7 at e)"]0G60`-6ND^)I2mI%>)QGYa=9"=7jhd-g2|b3!>Al0+
        Ccb%xGQshhi|g at QU2$
User-Agent: MacSOUP/D-2.7 (Mac OS X version 10.4.7)
Subject: Re: Plugin Linker problem
X-BeenThere: realbasic-plugins at lists dot realsoftware dot com
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot 
com>
Sender: realbasic-plugins-bounces at lists dot realsoftware dot com
Errors-To: realbasic-plugins-bounces at lists dot realsoftware dot com

Jonathan Johnson <jonj at realsoftware dot com> wrote:

If you're sure that the CG plugin isn't referencing any other plugins,
then it probably is a bug.

I think it is a bug:

<http://www.monkeybreadsoftware.de/pluginhelp/pluginpart-178-mbscfplugin
..shtml>

<http://www.monkeybreadsoftware.de/pluginhelp/pluginpart-179-mbscgplugin
..shtml>

There all functions and classes are listed for those two plugin parts.

Gruß
Christian

--
Around eleven thousand functions in one REALbasic plug-in. The Monkeybread Software Realbasic Plugin v6.2.
<http://www.monkeybreadsoftware.de/realbasic/plugins.shtml>
_______________________________________________
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>