Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1467

cCropper: Simple, "Smart" RC6/Cairo Image Cropping Class

$
0
0
cCropper is a small and fast VB6/RC6 class designed to make image cropping easy, and to allow you to add image cropping to your VB applications (nearly) effortlessly.

In addition to being a useful stand-alone class, the code has also been thoroughly commented - making it useful as learning material for RC6/Cairo graphics features and functionality.

Features:

  • UI Mode:
    Let users visually select, move, and resize crop areas with the mouse.

  • Programmatic Mode:
    Define crop rectangles and process images entirely through code.

  • Format Support:
    Load and save PNG, JPEG, and BMP files.

  • "Smart" File Size Control:
    Automatically resize files to stay near a target maximum byte size – perfect for uploads and email attachments.



Screenshot:

Name:  2025-04-20_13-06-57.jpg
Views: 120
Size:  31.2 KB


Notes

Requires the RC6 library.


Source Code:

RC6CairoImageCropper.zip

(Includes demo image which accounts for most of the file size - source code is < 50kb)


Enjoy!
Attached Images
 
Attached Files

Viewing all articles
Browse latest Browse all 1467

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>