com.mathworks.toolbox.javabuilder.Images Class
Namespace: com.mathworks.toolbox.javabuilder
Java utility methods for image data manipulation within MWArrays
Description
Declaration
public class Images extends java.lang.Object
Creation
Declaration
Images()
Methods
Public Methods
renderArrayData |
Create a RenderedImage from the data in the given MWNumericArray. This array must conform to the following restrictions:
Example: Converting figure data in a MWArray to a Buffered Image This example takes an MWArray containing figure data and converts it to a buffered image. It then constructs a byte array the same size as the image. Convert figure data output (a three dimensional numeric array) into a buffered image as follows: BufferedImage img = Images.renderArrayData((MWNumericArray)mwArray); int estimatedSize = img.getHeight()*img.getWidth()*3; byteOutputStream = new ByteArrayOutputStream(estimatedSize); Parameters:
Returns:
|
Inherited Methods
Methods inherited from class java.lang.Object
.
clone |
Used to create and return a copy of the object it is called on. This method is protected and provides a shallow copy, meaning it copies the values of an object's fields directly. For fields that are objects, it copies references, not the objects themselves. |
equals |
Used to compare two objects for
equality. It checks if the two objects are the same in terms of their content,
rather than just comparing their references. By default, the
|
finalize |
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. |
getClass |
Returns the runtime class of this Object. |
hashCode |
Used to return a hash code
value for the object. This integer value is used for efficiently storing objects
in hash-based collections like |
notify |
|
notifyAll |
Wakes up all threads that are waiting on this object's monitor. |
wait |
Causes
the current thread to wait until another thread invokes the
|
Version History
Introduced in R2006a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)