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: Thu, 22 Sep 2005 21:10:29 -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=kX9TSEJHgi2qQgvpPuMsd19CGu+he3oXe1ZkJY2YM13V6jaFnibDIygM+r/yxtFimMQ/itiKQbdLXvhwB/qP7RNaM3DW1mkN8DksUUQu63sApJeh3CWvyhhWIyicMAmx/UD0DIkN+YGCSgk5jyEPGEweu2kzsei02ieFxXkOk4o=
References: <496bf51a05092019337180466a at mail dot gmail dot com> <a06200704bf567b8c2eb0 at 10 dot 0 dot 1 dot 4> <496bf51a0509211826355b31bb at mail dot gmail dot com> <a06200702bf57caa5de4d at 10 dot 0 dot 1 dot 4>
Sorry I guess I didn't quite state what I was going for.  Yes, the
image gets cut off by the canvas bounds.  What I am looking for is a
way to draw the rotated image in the upper left hand corner of the
canvas.

Is there a way to find out at what x,y to draw the rotated image, so
that it is drawn as close to 0,0 as possible.  Example of what I'm
trying to make it look like. 
http://www.filefarmer.com/dimmensionx/forjoe2.JPG

How do you know at what coordinates to draw the picture so that is
does not get cut off by the canvas bounds, yet the upper edge remains
as close to 0,0 as possible?

Thanks.

On 9/21/05, Joseph J. Strout <joe at realsoftware dot com> wrote:
> At 8:26 PM -0500 9/21/05, Andrew Krebs wrote:
>
> >   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
>
> Sorry, I don't see what's wrong with this picture.  You have one
> drawn at 0,0, cut off by the canvas bounds exactly like it should be,
> and another drawn in the center, apparently not cut off (unless I'm
> misunderstanding what the original image looks like).  What's the
> problem?
>
> Best,
> - Joe
>
> --
> Joe Strout                          REAL Software, Inc.
>
> Vote for REALbasic (twice!) in the LinuxWorld Reader's Choice Awards:
> http://linux.sys-con.com/general/readerschoice.htm
> _______________________________________________
> 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>
>


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