始める,決める raw data of a bitmap, in the 判型 as defined by
getMemoryLayout(). With the given rectangle, a subset of the
bitmap can be changed. If the 内部の data 判型's pixel are
not integer 多重のs of bytes (i.e. if one pixel 占領するs
いっそう少なく than a byte), the leftover content of the bytes at the
権利 of each scanline is ignored and left 不変の in the
bitmap. When setting subsets of the bitmap, the same scanline
padding takes place as when the whole bitmap is changed.
When setting data on volatile bitmaps, always call isValid()
before, and retrieve a new memory layout 経由で
getMemoryLayout(). At least under Windows, the memory layout
can change for the same bitmap, if the 使用者 e.g. switches the
審査する 決意/決議. Thus, this method will throw an
IllegalArgumentException, if the memory layout changed between
a call to getMemoryLayout() and setData().
Parameter data
Data to 始める,決める
Parameter bitmapLayout
Layout of the data to 始める,決める. Must match this bitmap's 現在の
layout.
Parameter rect
目的地 rectangle, within the bounds of the bitmap, to 始める,決める
the data in.
Throws
com::sun::星/主役にする::lang::IndexOutOfBoundsException
if parts of the given rectangle are outside the permissible
bitmap area.
Throws
com::sun::星/主役にする::lang::IllegalArgumentException
if the given memory layout does not match this bitmap's
layout, or if the given data sequence has too few or too many
elements.
始める,決める a 選び出す/独身 pixel of the bitmap with the given color
value.
If the 内部の data 判型's pixel are not integer 多重のs
of bytes (i.e. if one pixel 占領するs いっそう少なく than a byte), the
color value is 推定する/予想するd in the least 重要な bits of the
選び出す/独身 byte given as the color.
When setting data on volatile bitmaps, always call isValid()
before, and retrieve a new memory layout 経由で
getMemoryLayout(). At least under Windows, the memory layout
can change for the same bitmap, if the 使用者 e.g. switches the
審査する 決意/決議. Thus, this method will throw an
IllegalArgumentException, if the memory layout changed between
a call to getMemoryLayout() and setPixel().
Parameter color
The color value(s) to 始める,決める
Parameter bitmapLayout
Layout of the color elements to 始める,決める. Must match this bitmap's
現在の layout.
Parameter pos
Pixel position with the bounds of the bitmap to 始める,決める.
Throws
com::sun::星/主役にする::lang::IndexOutOfBoundsException
if the given point is outside the permissible bitmap area.
Throws
com::sun::星/主役にする::lang::IllegalArgumentException
if the given memory layout does not match this bitmap's
layout, or if the given data sequence has too few or too many
elements.