Image¶
-
php\swing\Image
Constants
- constant
TYPE_INT_RGB¶
- constant
TYPE_INT_ARGB¶
- constant
TYPE_INT_ARGB_PRE¶
- constant
TYPE_INT_BGR¶
- constant
TYPE_3BYTE_BGR¶
- constant
TYPE_4BYTE_ABGR¶
- constant
TYPE_4BYTE_ABGR_PRE¶
- constant
TYPE_USHORT_565_RGB¶
- constant
TYPE_USHORT_555_RGB¶
- constant
TYPE_BYTE_GRAY¶
- constant
TYPE_USHORT_GRAY¶
- constant
TYPE_BYTE_BINARY¶
- constant
TYPE_BYTE_INDEXED¶
Properties
Methods
__construct($width, $height, $type = ::)¶
Parameters:
- $width – int
- $height – int
- $type – int
getSubimage($x, $y, $w, $h)¶
Parameters:
- $x – int
- $y – int
- $w – int
- $h – int
Returns:
getRGB($x, $y)¶
Parameters:
- $x – int
- $y – int
Returns: int
setRGB($x, $y, $rgb)¶
Parameters:
- $x – int
- $y – int
- $rgb – int - - color
getGraphics()¶
Returns: php\swing\Graphics
getProperty($name)¶
Parameters:
- $name –
Returns: php\lang\JavaObject, null
- static
read($stream)¶throws php\io\IOException
Parameters:
- $stream – php\io\Stream, php\io\File, string - - file path or stream
Returns:
- static
write($image, $format, $stream)¶throws php\io\IOException
Parameters:
- $image – php\swing\Image
- $format –
- $stream – php\io\Stream, php\io\File, string - - file path or stream