PixelsData

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.ms.System.ICloneable

public final class PixelsData implements System.ICloneable

The class to store image pixels data and its bounds.

Constructors

ConstructorDescription
PixelsData()Initializes a new instance of the PixelsData class.
PixelsData(int[] pixels, Rectangle bounds)Initializes a new instance of the PixelsData class.

Methods

MethodDescription
createLoader_internalized()Creates the PixelsDataLoader instance for current instance of PixelsData.
createSaver_internalized()Creates the PixelsDataSaver instance for current instance of PixelsData.
create_internalized(Rectangle bounds)
create_internalized(Size size)
deepClone()It creates full copy of instance
equals(Object arg0)
getBounds()Gets or sets the bounds of pixels data.
getClass()
getClone_internalized()Creates a full copy of the current PixelsData instance.
getPixels()Gets or sets the pixels data.
hashCode()
notify()
notifyAll()
setBounds(Rectangle value)Gets or sets the bounds of pixels data.
setPixels(int[] value)Gets or sets the pixels data.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

PixelsData()

public PixelsData()

Initializes a new instance of the PixelsData class.

PixelsData(int[] pixels, Rectangle bounds)

public PixelsData(int[] pixels, Rectangle bounds)

Initializes a new instance of the PixelsData class.

Parameters:

ParameterTypeDescription
pixelsint[]The pixels data.
boundsRectangleThe pixels bounds rectangle.

createLoader_internalized()

public final IRasterImageArgb32PixelLoader createLoader_internalized()

Creates the PixelsDataLoader instance for current instance of PixelsData.

Returns: IRasterImageArgb32PixelLoader - The new instance of PixelsDataLoader base on current instance of PixelsData.

createSaver_internalized()

public final IPixelsSaver createSaver_internalized()

Creates the PixelsDataSaver instance for current instance of PixelsData.

Returns: com.aspose.internal.IPixelsSaver - The new instance of PixelsDataSaver base on current instance of PixelsData.

create_internalized(Rectangle bounds)

public static PixelsData create_internalized(Rectangle bounds)

Parameters:

ParameterTypeDescription
boundsRectangle

Returns: PixelsData

create_internalized(Size size)

public static PixelsData create_internalized(Size size)

Parameters:

ParameterTypeDescription
sizeSize

Returns: PixelsData

deepClone()

public final Object deepClone()

It creates full copy of instance

Returns: java.lang.Object - The copy of instance.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getBounds()

public final Rectangle getBounds()

Gets or sets the bounds of pixels data.

Returns: Rectangle

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getClone_internalized()

public final PixelsData getClone_internalized()

Creates a full copy of the current PixelsData instance.

Returns: PixelsData - A new PixelsData object that is a copy of the current instance.

getPixels()

public final int[] getPixels()

Gets or sets the pixels data.

Returns: int[]

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setBounds(Rectangle value)

public final void setBounds(Rectangle value)

Gets or sets the bounds of pixels data.

Parameters:

ParameterTypeDescription
valueRectangle

setPixels(int[] value)

public final void setPixels(int[] value)

Gets or sets the pixels data.

Parameters:

ParameterTypeDescription
valueint[]

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int