Image¶
-
class
props.
Image
¶
PNG image prop
This is a type of props.Prop that can be used when a props.HasProps class needs an image property. Only PNG images are currently supported. Valid values are either PNG filenames that can be read with imread or valid PNG matrices already in MATLAB. Image will attempt to coerce different image formats to PNG, but the success may be limited.
Attributes - No properties besides those inherited from props.Prop
Example:
...
class HasImageProp < props.HasProps
properties (Hidden, SetAccess = immutable)
ImagePropStruct = { ...
struct( ...
'Name', 'SomePicture', ...
'Type', @props.Image, ...
'Doc', 'Some PNG image' ...
) ...
}
end
...
end
See also props.Prop, props.HasProps, props.Array, props.Color