I have PICT data (created by cut-paste from graphics apps such as
Canvas) stored in a DB. I need to display these in a window. I'm
using a method that calls Quickdraw functions to DrawPicture into a
GWorld, then a final call to REALBuildPictureFromGWorld
(myGWorld,TRUE) returns the RB picture to the calling app.
The problem is that some objects (rotated text in particular) look
awful when rendered by QuickDraw, so I thought Quartz would do a
better job. So I used Apple's examples and converted the PICT data
to PDF, and now need to "render" the PDF objects into an RB picture
for display in a canvas.
Does anyone know how to do this? Is there an analogous function to
REALBuildPictureFromGWorld that will build an RB picture from PDF
objects? Am I going about this the wrong way? Or is there a cleaner
way of rendering PICT data into a GWorld that makes nice rotated text?
I know that the PICT data faithfully "remember" the rotated text at
high quality because when I paste the PICT data back into Canvas for
instance, it is drawn very nicely, so all the info is preserved.
It's a matter of rendering it nicely on the screen.
Thanks for any tips.
Peter.
------------------------------------------------------------------------
-------
Peter K. Stys, MD
Professor of Medicine(Neurology), Senior Scientist
Ottawa Health Research Institute, Div. of Neuroscience
Ottawa Hospital / University of Ottawa
Ontario, CANADA
tel: (613)761-5444
fax: (613)761-5330
http://www.ohri.ca/profiles/stys.asp
------------------------------------------------------------------------
-------
_______________________________________________
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 9 Feb 2006 23:06:11 +0100
Return-Path: <realbasic-plugins-bounces at lists dot realsoftware dot com>
Received: from lists.realsoftware.com (209.198.132.125) by realsoftware.com
with ESMTP (Eudora Internet Mail Server 3.1.3);
Thu, 9 Feb 2006 16:06:24 -0600
Received: from lists.realsoftware.com (localhost [127.0.0.1])
by lists.realsoftware.com (Postfix) with ESMTP
id D75F010E1F8C; Thu, 9 Feb 2006 16:06:17 -0600 (CST)
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 14AF110E1F7E
for <realbasic-plugins at lists dot realsoftware dot com>;
Thu, 9 Feb 2006 16:06:13 -0600 (CST)
Received: (qmail 6225 invoked from network); 9 Feb 2006 22:06:11 -0000
Received: from unknown (HELO [192.168.1.80]) (363246 at [84 dot 175 dot 111 dot
13])
(envelope-sender <support at monkeybreadsoftware dot info>)
by smtprelay02.ispgateway.de (qmail-ldap-1.03) with SMTP
for <realbasic-plugins at lists dot realsoftware dot com>;
9 Feb 2006 22:06:11 -0000
To: realbasic-plugins at lists dot realsoftware dot com (REALbasic Plugins)
In-Reply-To: <3F70B7D6-A876-41C8-AEF9-9DC47D9083EA at ohri dot ca>
From: support at monkeybreadsoftware dot info (Christian Schmitz)
Date: Thu, 9 Feb 2006 23:06:11 +0100
Message-ID: <1hailgn dot a22csr13918e3M%support at monkeybreadsoftware dot info>
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.4)
Subject: Re: How to render into an RB picture using Quartz?
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
Peter K. Stys <pstys at ohri dot ca> wrote:
The problem is that some objects (rotated text in particular) look
awful when rendered by QuickDraw, so I thought Quartz would do a
better job.
I see no problem in adding a CoreGraphics class in my plugins to use
Quartz rendering for PICT data.
Just email me if you are interested.
Mfg
Christian
--
Around eleven thousand functions in one REALbasic plug-in.
The Monkeybread Software Realbasic Plugin.
<http://www.monkeybreadsoftware.info/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>
|