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: Phil M <phil at mobleybros dot com>
Date: Thu, 13 Jul 2006 21:12:04 -0400
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> <8EFEF6B5-14A6-4ED3-9206-0CB987A80C6B at einhugur dot com>
On Jul 13, 2006, at 2:13 PM, Björn Eiríksson wrote:

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)

So in other words, you always have to have platform specific code to read/write the pixel data... there is no generic XRGB bitmap format, right?

_______________________________________________
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  Fri 14 Jul 2006 07:56:46 +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 938E281F082; Thu, 13 Jul 2006 22:57:06 -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 AC7CA81F077;
        Thu, 13 Jul 2006 22:57:00 -0700 (PDT)
Received: from lists.realsoftware.com (localhost [127.0.0.1])
        by lists.realsoftware.com (Postfix) with ESMTP
        id 5BF8E137F274; Fri, 14 Jul 2006 00:56:52 -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 smtprelay02.ispgateway.de (smtprelay02.ispgateway.de
        [80.67.18.14])
        by lists.realsoftware.com (Postfix) with ESMTP id 42BA9137F267
        for <realbasic-plugins at lists dot realsoftware dot com>;
        Fri, 14 Jul 2006 00:56:47 -0500 (CDT)
Received: (qmail 24564 invoked from network); 14 Jul 2006 05:56:46 -0000
Received: from unknown (HELO [192.168.1.80]) (363246 at [84 dot 175 dot 109 dot 
233])
        (envelope-sender <support at monkeybreadsoftware dot de>)
        by smtprelay02.ispgateway.de (qmail-ldap-1.03) with SMTP
        for <realbasic-plugins at lists dot realsoftware dot com>;
        14 Jul 2006 05:56:46 -0000
To: realbasic-plugins at lists dot realsoftware dot com (REALbasic Plugins)
In-Reply-To: <9888A66B-EECD-4A66-BB2A-459C18316942 at mobleybros dot com>
From: support at monkeybreadsoftware dot de (Christian Schmitz)
Date: Fri, 14 Jul 2006 07:56:46 +0200
Message-ID: <1higgpy dot 1qr7iq064tbucM%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: Templates and other questions
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

Phil M <phil at mobleybros dot com> wrote:

So in other words, you always have to have platform specific code to
read/write the pixel data... there is no generic XRGB bitmap format,
right?

Correct.

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>