CISImageEx

CISImageEx

CISImageEx is C++ class that you can use along with ImgSource; it wraps much of the ImgSource functionality in an easy-to-use C++ class.

Features

  • Read and Write images in a single function call
  • Works seamlessly with images of 32,24,8 or 1 bits per pixel.
  • Handles mempry management, palette, DPI, size and bit-depth issues for you.
  • Handles many of the common ImgSource functions (resize, rotate, overlay, crop, fill, change bit depth, etc).
  • Very easy to extend, if you need to add other ImgSource (or ISEffects, or SAJ2k or SARAW) functionality.
  • Works with both the DLL and the static library versions.
  • You can use ImgSource from C++ without CISImageEx, but why would you want to?

Sample usage

	
	// load an image.
	CISImageEx image;
	image.LoadImage("C:\\input.bmp");

	// reduce the image by half
	CSize csSize = image.Size();
	csSize.cx/=2; 
	csSize.cy/=2;
	image.Resize(csSize);

	// save it as a JPG
	image.SaveImage("C:\\output.jpg", eFmtJPG);
	
	

Download

You can find CISImageEx and ISImageDemo in the ImgSource DLL download: here

Tech Support



Other Platforms


This was written for MS Visual C++. It should be fairly easy to convert to other C++ environments.

Suggestions


If you have ideas about functionality that you'd like but don't see here, let us know. Many of the features included are the result of people asking if we could figure out how to do it.


Copyright © 2013, Smaller Animals Software, Inc.

Smaller Animals News

ImgSource

ThumbNailer 10