JavaXT
|
|||||||||||
ThumbnailEditor ClassSimple image editor used to create a thumbnail of an image. Provides controls to center, resize, and crop a source image.
ConstructorsUsed to instantiate this class
Config Optionssliders If true, will render a slider used to resize the image. Otherwise, the slider is hidden from view. Default is true.
style Style for individual elements within the component. Note that you can provide CSS class names instead of individual style definitions.
EventsPublic MethodssetImage( src ) Used to update the panel with a source image.
getImage( format, returnBase64 ) Returns image data, cropped and scaled to match the thumbnail preview. Image data is returned as a Blob. The data can be rendered in a "img" element by converting the Blob to a Base64 encoded string. Example: img.src = URL.createObjectURL(data);
|