realbasic-nug
[Top] [All Lists]

Re: How do I draw a dashed border for an Object2D?

To: "REALbasic NUG" <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: How do I draw a dashed border for an Object2D?
From: "Peter K. Stys" <pkstys at gmail dot com>
Date: Fri, 28 Apr 2006 13:52:46 -0400
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=IJNI77Le//o4oZIL/25O+IXhyM88q+AlWU4qVtkjT5IJTpENpnmYkuW0qhmcq6NncnbpoCUF7X9iOUtid74C6ay9NU6T3SjTzw49WG9UxgG8ITFFEuH1PI78IJKuLhq0a1NdEHvr9/7QM5lOD3mqneA+iYobS0+klj8sv+Z9a5E=
References: <77124270604280959s7f65bf9fq1129ca03c73c2c15 at mail dot gmail dot com> <20060428172336 dot CC382190F39 at jareth dot dreamhost dot com>
OK, translucent, continuous borders it is -- no marching, no
dashing...and to think MacPaint did this effortlessly in 1984?  This
is progress? ;-)

Thx for the tips,
Peter.


On 4/28/06, joe at strout dot net <joe at strout dot net> wrote:
Peter wrote:

> But if I fill the mask with a zebra pattern, draw the the borders into
> this mask, then if I draw this picture into the final graphics
> context, that will change my entire underlying image (atop which I
> want to draw just a dashed outline) into a zebra, no?

Yes.  What, you want XOR mode too?  :)  That's another thing that doesn't work 
well cross-platform (and isn't supported by Quartz at all, nor did it ever work 
well on, say, a gray image.)

> I do realize that marching ants is passé.  Is there another way, eg.
> passing an RB Object2D to one of the CoreGraphics routines via a
> declare to make its (or a derivative of this Object2D) border dashed?

No, not that I can think of.  An Object2D isn't a CoreGraphics object, though 
it may be rendered as one -- rather, it's a REAL Software invention, which is 
internally exactly the same on all platforms.  It doesn't get converted into 
something platform-specific until rendering, but you have no way to hook into 
or extend it at that point.

Best,
- Joe

--
Joe Strout -- joe at strout dot net
Available for custom REALbasic programming or instruction.

_______________________________________________
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>



--
-------------------------------------------------------------------------------
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  Fri 28 Apr 2006 12:03:18 -0600
Return-Path: <realbasic-nug-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);
Fri, 28 Apr 2006 13:03:38 -0500
Received: from lists.realsoftware.com (localhost [127.0.0.1])
        by lists.realsoftware.com (Postfix) with ESMTP
        id 9BFAA1229C5A; Fri, 28 Apr 2006 13:03:27 -0500 (CDT)
X-Original-To: realbasic-nug at lists dot realsoftware dot com
Delivered-To: realbasic-nug at lists dot realsoftware dot com
Received: from jareth.dreamhost.com (jareth.dreamhost.com [66.33.198.201])
        by lists.realsoftware.com (Postfix) with ESMTP id 3FB421229C4B
        for <realbasic-nug at lists dot realsoftware dot com>;
        Fri, 28 Apr 2006 13:03:21 -0500 (CDT)
Received: from [10.0.1.2] (c-67-174-105-26.hsd1.co.comcast.net [67.174.105.26])
        by jareth.dreamhost.com (Postfix) with ESMTP id 7F1C4190F39
        for <realbasic-nug at lists dot realsoftware dot com>;
        Fri, 28 Apr 2006 11:03:18 -0700 (PDT)
Date: Fri, 28 Apr 2006 12:03:18 -0600
From: joe at strout dot net
To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
In-Reply-To: <7E89FAD4-8C53-446D-B103-74244662D62D at endlesspools dot com>
X-Mailer: VerEx Email Gateway
Content-type: text/plain;
Content-transfer-encoding: 7bit
Message-Id: <20060428180318 dot 7F1C4190F39 at jareth dot dreamhost dot com>
Subject: Re: Coding a User-Editable Pseudo Language (Script Builder)
X-BeenThere: realbasic-nug at lists dot realsoftware dot com
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Sender: realbasic-nug-bounces at lists dot realsoftware dot com
Errors-To: realbasic-nug-bounces at lists dot realsoftware dot com

Hi Steve,

I've tinkered with things like this in the past -- though for a somewhat 
different purpose (in one case, a programming environment for kids; in another, 
a set of rules for a Myst-like adventure game).  If you'd like a hand 
developing this, I'd be happy to consult on it.

Best,
- Joe


--
Joe Strout -- joe at strout dot net
Available for custom REALbasic programming or instruction.

_______________________________________________
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>