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 = ::)¶
Параметры:
- $width –
int
- $height –
int
- $type –
int
getSubimage
($x, $y, $w, $h)¶
Параметры:
- $x –
int
- $y –
int
- $w –
int
- $h –
int
Результат:
getRGB
($x, $y)¶
Параметры:
- $x –
int
- $y –
int
Результат:
int
setRGB
($x, $y, $rgb)¶
Параметры:
- $x –
int
- $y –
int
- $rgb –
int
- - color
getGraphics
()¶
Результат: php\swing\Graphics
getProperty
($name)¶
Параметры:
- $name –
Результат: php\lang\JavaObject,
null
- static
read
($stream)¶throws php\io\IOException
Параметры:
- $stream – php\io\Stream, php\io\File,
string
- - file path or streamРезультат:
- static
write
($image, $format, $stream)¶throws php\io\IOException
Параметры:
- $image – php\swing\Image
- $format –
- $stream – php\io\Stream, php\io\File,
string
- - file path or stream