This is a simple image manipulation app with the following features:
Examples:
![Name: flip.jpg
Views: 40
Size: 29.2 KB]()
![Name: crop.jpg
Views: 40
Size: 28.6 KB]()
I wanted to learn more about Cairo graphics in RC6 by putting together a fully functional (albeit small) application. I haven't used RC6 Widgets for this project though, just vanilla VB6 forms & controls.
KNOWN BUGS:
Saving a cropped & rotated image will likely crop at the wrong location. Still trying to figure out why, and wouldn't mind some help with this part :) It might be nice if CCairoSurface had a Crop(X1, Y1, X2, Y2) method that would return a new CCairoSurface cropped out of the full-sized surface.
OTHER NOTES:
I'm not convinced I've gone about the Cairo stuff optimally - if Olaf or any other Cairo-knowledgable folks would be kind enough to review the code and make suggestions, it would be much appreciated.
Source Code (Requires RC6):
RC6CairoImageEditor.zip
Hope you enjoy the demo, and maybe even learn something from it.
- Load an image (Press L)
- Horizontal flipping (Press H)
- Vertical flipping (Press V)
- Rotation by pressing R (90 degree clockwise rotation) or SHIFT+R (90 degree counter-clockwise rotation)
- Cropping (click & drag mouse to define a crop rectangle)
- File navigation (press SPACE to load the next image in the active folder, press BACKSPACE to load the previous image in the folder).
- Save modified image (Press S)
Examples:
I wanted to learn more about Cairo graphics in RC6 by putting together a fully functional (albeit small) application. I haven't used RC6 Widgets for this project though, just vanilla VB6 forms & controls.
KNOWN BUGS:
Saving a cropped & rotated image will likely crop at the wrong location. Still trying to figure out why, and wouldn't mind some help with this part :) It might be nice if CCairoSurface had a Crop(X1, Y1, X2, Y2) method that would return a new CCairoSurface cropped out of the full-sized surface.
OTHER NOTES:
I'm not convinced I've gone about the Cairo stuff optimally - if Olaf or any other Cairo-knowledgable folks would be kind enough to review the code and make suggestions, it would be much appreciated.
Source Code (Requires RC6):
RC6CairoImageEditor.zip
Hope you enjoy the demo, and maybe even learn something from it.