realbasic-games
[Top] [All Lists]

Re: Drawing Rotated Image

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: Drawing Rotated Image
From: Andrew Krebs <andykr at gmail dot com>
Date: Wed, 21 Sep 2005 20:26:53 -0500
Delivered-to: realbasic-games 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:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SGt2mJVbjWTmvb2fT95GuWZC9JrVpE3u/xOkbHSu0wtE3eao1ULe3G2TQDt9se8px+2xACnS6YXIpWZN1YhzQSLL9gs2m794Vc4SLd7TtetWzSowDl+oB9xaRJgdh774lC26cTGyt+9n6Ycz1sK/LsLMMhmEYFMm8jTlSQjUSvQ=
References: <496bf51a05092019337180466a at mail dot gmail dot com> <a06200704bf567b8c2eb0 at 10 dot 0 dot 1 dot 4>
Sure thing.  The size of the picture is smaller than the canvas, I am
sure of that.  I'm testing this on Windows XP with 5.5.5.

  Dim px As PixmapShape
  Dim pic As Picture
  const pi = 3.14159

  pic = xmediumred

  px = New PixmapShape(pic)
  px.rotation = 45 * (pi/180)

  Canvas1.Graphics.DrawRect 0,0,Canvas1.Width,Canvas1.Height
  Canvas1.Graphics.DrawObject px,0,0
  Canvas1.Graphics.DrawObject px,150,150

And to illustrate my point, a picture!
http://www.filefarmer.com/dimmensionx/forjoe.gif

Thanks.

On 9/20/05, Joseph J. Strout <joe at realsoftware dot com> wrote:
> At 9:33 PM -0500 9/20/05, Andrew Krebs wrote:
> Hmm, they shouldn't be sliced off at all (assuming they still fit
> within the canvas).  Can you provide a code snippet that demonstrates
> this?  Be sure to mention what platform you're testing on, too
--
Andrew Krebs
andykr at gmail dot com
_______________________________________________
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>