Re: Question on GnomeCanvasImage



you can't use arbitrary affine transformations on the non antialiased
canvas.  You should be able to do translations for all items and scalings
for most items though.

James.

--
Email: james@daa.com.au
WWW:   http://www.daa.com.au/~james/


On Tue, 30 Nov 1999, Loban Amaan Rahman wrote:
> Hmm, I just figured something out. When I use the non-aa mode of GnomeCanvas
> (by calling gnome_canvas_new()), applying a rotation to the canvas item
> results in NOT a rotated canvas item, but rather the canvas item being scaled
> down and translated to one side. This is why I used aa mode (by calling
> gnome_canvas_new_aa()) instead. BUT, even though the canvas item gets
> rotated properly, the "area" over which my mouse can cause the canvas item
> to emit an event signal got transformed the same way it did in non-aa mode.
> (ie. the event area got scaled down and translated). And what happens is
> that after a couple of said transformations, the area gets translated
> completely out of the scrollable region of the canvas - hence it no longer
> generates any event signals.
> 
> Is this a bug? Or is my implementation wrong?
> 
> Thanx in advance.
> 
> 
> |      LOBAN AMAAN RAHMAN  <-- anagram of -->   AHA! AN ABNORMAL MAN!      |
> |   Snail: MSC #763, Caltech, Pasadena, CA 91126, USA. ** 1-626-395-1407   |
> |     Wired: loban@earthling.net, loban@caltech.edu, http://i.am/loban     |
> |        (Do 'finger loban@its' for my PGP public key and more info)       |
> 
> 
> -- 
>         FAQ: Frequently-Asked Questions at http://www.gnome.org/gnomefaq
>          To unsubscribe: mail gnome-list-request@gnome.org with 
>                        "unsubscribe" as the Subject.
> 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]