This is a 専攻するd interface for bitmaps having integer color
channels. In contrast to XIntegerBitmap, this
interface only 許すs read-only 接近.
Use this interface for e.g. bitmaps that are calculated
on-the-飛行機で行く, or that are pure 機能の, and thus cannot be
修正するd.
If you get passed an instance of
XIntegerReadOnlyBitmap that also supports the
XVolatileBitmap interface, things become a bit more
複雑にするd. When reading data, one has to check for both
VolatileContentDestroyedException and mismatching
IntegerBitmapLayout return values. If either of them
occurs, the whole bitmap read 操作/手術 should be repeated, if you
need 一貫した (警察などへの)密告,告訴(状).
Query the raw data of this bitmap, in the 判型 as defined by
getMemoryLayout(). With the given rectangle, a subset of the
whole bitmap can be queried. 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 filled with 無s. The
詳細(に述べる)s of the scanline padding are to be retrieved from the
passed bitmap layout.
公式文書,認める that the bitmap memory layout might change over time for
volatile bitmaps.
Parameter bitmapLayout
The memory layout the returned data is in. 公式文書,認める that the color
space returned therein needs to always match the 現在の color
space as would have been returned by getMemoryLayout(). This
is necessary to 確実にする 訂正する 操作/手術 under changing
XVolatileBitmap.
Parameter rect
A rectangle, within the bounds of the bitmap, to retrieve the
contens from.
Get a 選び出す/独身 pixel of the bitmap, returning its color
value.
If the 内部の data 判型's pixel are not integer 多重のs
of bytes (i.e. if one pixel 占領するs いっそう少なく than a byte - the
事例/患者 of more than one byte per pixel is not 明示するd), the
color value is returned in the least 重要な bits of the
選び出す/独身 byte returned as the color. The 詳細(に述べる)s of the returned
pixel data are to be retrieved from the passed bitmap layout.
公式文書,認める that the bitmap memory layout might change for volatile
bitmaps.
Parameter bitmapLayout
The memory layout the returned data is in. 公式文書,認める that the color
space returned therein needs to always match the 現在の color
space as would have been returned by getMemoryLayout(). This
is necessary to 確実にする 訂正する 操作/手術 under changing
XVolatileBitmap.
Parameter pos
A position, within the bounds of the bitmap, to retrieve the
color from.