- Inherit a new class PageFrame from GTK.DrawingArea.
- Define pixbuf in PageFrame for holding image for display.
- Define mouse scroll handler in PageFrame for resizing image.
- Define mouse drag handler in PageFrame for repositioning image.
- During resizing, the location of the mouse pointer will be the centre of the transformation.
No comments:
Post a Comment