HomeForumSourceResearchGuide
Sign in to contribute to source. how it works
Type definition file media.image.ImageEncoder by barry
expand copy to clipboardexpand
/* {"description" : "This API supports encoding of a general pixel map into a specific image format. Use one of the semantic variants of this interface to select an image format." } */

uses media.PixelMap
uses io.File

interface ImageEncoder {
	
	/* {"@description" : "Instantiate an image encoder." } */
	ImageEncoder()
	
	/* {"@description" : "Load an image from a given file object." } */
	bool loadImage(File fd)
	
	/* {"@description" : "Save the pixel map help by this object to a given file object." } */
	bool saveImage(File fd)
	
	/* {"@description" : "Get the pixel map held by this object." } */
	PixelMap getPixels()
	
	/* {"@description" : "Set the pixel map held by this object." } */
	void setPixels(store PixelMap pm)
	}
Revision history
To propose a new revision to this entity, use dana source put -ut your/new/version.dn -n media.image.ImageEncoder -m "reason for update" -u yourUsername
Version 1 (this version) by barry
Notes for this version: Standard Library Initialisation