IImageMask
All Implemented Interfaces: com.aspose.ms.System.ICloneable
public interface IImageMask extends System.ICloneable
Descrive una maschera.
Metodi
| Metodo | Descrizione |
|---|---|
| getSource() | Restituisce l’immagine sorgente utilizzata per creare questa maschera, se esiste. |
| getWidth() | Restituisce la larghezza, in pixel, di questa maschera. |
| getHeight() | Restituisce l’altezza, in pixel, di questa maschera. |
| getBounds() | Restituisce i limiti, in pixel, di questa maschera. |
| getSelectionBounds() | Restituisce i limiti della parte selezionata della maschera, in pixel. |
| isOpaque(int x, int y) | Verifica se il pixel specificato è opaco. |
| isTransparent(int x, int y) | Verifica se il pixel specificato è trasparente. |
| getByteOpacity(int x, int y) | Ottiene l’opacità del pixel specificato con precisione a byte. |
getSource()
public abstract RasterImage getSource()
Restituisce l’immagine sorgente utilizzata per creare questa maschera, se esiste.
Returns: RasterImage - the source image used to create this mask, if exists.
getWidth()
public abstract int getWidth()
Restituisce la larghezza, in pixel, di questa maschera.
Returns: int - la larghezza, in pixel, di questa maschera.
getHeight()
public abstract int getHeight()
Restituisce l’altezza, in pixel, di questa maschera.
Returns: int - l’altezza, in pixel, di questa maschera.
getBounds()
public abstract Rectangle getBounds()
Restituisce i limiti, in pixel, di questa maschera.
Returns: Rectangle - the bounds, in pixels, of this mask.
getSelectionBounds()
public abstract Rectangle getSelectionBounds()
Restituisce i limiti della parte selezionata della maschera, in pixel.
Returns: Rectangle - the bounds of the selected part of the mask, in pixels.
isOpaque(int x, int y)
public abstract boolean isOpaque(int x, int y)
Verifica se il pixel specificato è opaco.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| x | int | La coordinata x del pixel. |
| y | int | La coordinata y del pixel. |
Returns: boolean - true se il pixel specificato è opaco; altrimenti, false.
isTransparent(int x, int y)
public abstract boolean isTransparent(int x, int y)
Verifica se il pixel specificato è trasparente.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| x | int | La coordinata x del pixel. |
| y | int | La coordinata y del pixel. |
Returns: boolean - true se il pixel specificato è trasparente; altrimenti, false.
getByteOpacity(int x, int y)
public abstract byte getByteOpacity(int x, int y)
Ottiene l’opacità del pixel specificato con precisione a byte.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| x | int | La coordinata x del pixel. |
| y | int | La coordinata y del pixel. |
Returns: byte - Valore byte, che rappresenta l’opacità del pixel specificato.