<< imshow | Graphics functions | is2D >> |
imwrite(A, filename) |
imwrite(A, map, filename) |
imwrite(..., fmt) |
imwrite(..., , propertyName, propertyValue) |
matrix: 3D for color and 2D for gray or indexed image.
Colormap of indexed image:m-by-3 array.
Format of output file: 'bmp', 'png', 'jpg', ...
a row vector characters or scalar string: name of graphics file.
a scalar string or row vector character.
a value.
imwrite(A, filename) writes image data A to the file specified by filename
Property name:
Quality: quality of output file: scalar in the range [0, 100] (75 as default).
Alpha: matrix of values in the range [0, 1]: Transparency of each pixel.
Comment: character vector, string scalar, cell array of character vectors or string array: Comment added to image.
Author: character vector or string scalar: Author information.
f = figure();
A = rand(69, 69);
A(:,:,2) = rand(69,69);
A(:,:,3) = rand(69,69);
imshow(A);
imwrite(A, [tempdir, '69x69-RGB.png']);
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET