[cairo] Scrolling bitmaps with Cairo over GDK

Ken Resander kresander at yahoo.com
Sun Feb 1 10:35:12 PST 2009

I am in the process of moving away from Windows to Ubuntu 8.10 for personal and programming use. I have read the GDK documentation, but have no programming experience on GDK yet other than compiling and running tiny programs from tutorials. Also, I have never used Cairo, but have read overviews and tutorials. It looks nice. 

I intend to port about ten programs, most having simple GUIs and graphics that should map without much difficulty to GDK/GTK and Cairo as far as I can see. 

However, two applications need to scroll bitmaps in dialog controls/windows and also print them. The bitmaps are derived from images (jpeg, bmp etc) or rendering buffers generated by AGG 2.4. Windows with Win32 API does not support scrolling of bitmaps, so I had to do it myself by using bitblt and ScrollWindow functions on events. A bit fiddly, but in the end it worked reasonably well.

How does Cairo + GDK help me scrolling and printing bitmaps? Hope it is more straightforward.

P.S. Would also be nice to have a print preview function. Tried coding this on Windows too, but could not get the zoom to work.

      Get your preferred Email name!
Now you can @ymail.com and @rocketmail.com. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cairographics.org/archives/cairo/attachments/20090201/bd6e496f/attachment.html 

More information about the cairo mailing list