Re: pictures



On Mon, 2011-02-14 at 20:32 +0100, Benjamin Otte wrote:
> The header defining GdkPicture can be found at
> http://git.gnome.org/browse/gtk+/tree/gdk/gdkpicture.h?h=picture
> It will tell you that a picture has
> - a size (width and height)
> - a way to draw it to a cairo context
> - a way to tell you its contents changed
> - a way to tell you it got resized
> and that is all a basic picture has.

The height/width stuff makes this very much a pixel-storage-based kind
of picture, and doesn't ideally describe a vectorized image, like say an
svg, where there might be no "natural" size in terms of pixels.

How do you intend to handle these? (Just pretend that they have some
size is one answer, I'm just wondering if you've thought about this
case.)

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
       alexl redhat com            alexander larsson gmail com 
He's a time-tossed drug-addicted librarian haunted by an iconic dead American 
confidante She's a transdimensional cigar-chomping femme fatale descended from 
a line of powerful witches. They fight crime! 



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