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


property type

int

read-only

property width

int

read-only

property height

int

read-only

Methods


__construct($width, $height, $type = ::)
Parameters:
  • $widthint
  • $heightint
  • $typeint
getSubimage($x, $y, $w, $h)
Parameters:
  • $xint
  • $yint
  • $wint
  • $hint
Returns:

php\swing\Image

getRGB($x, $y)
Parameters:
  • $xint
  • $yint
Returns:

int

setRGB($x, $y, $rgb)
Parameters:
  • $xint
  • $yint
  • $rgbint - - color
getGraphics()
Returns:php\swing\Graphics
getProperty($name)
Parameters:
  • $name
Returns:

php\lang\JavaObject, null

static read($stream)

throws php\io\IOException

Parameters:
Returns:

php\swing\Image

static write($image, $format, $stream)

throws php\io\IOException

Parameters: