このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。

翻訳前ページへ


Interface XIntegerBitmapColorSpace
Language

The 解放する/自由な and Open 生産性 控訴
解放(する)d: Apache OpenOffice 4.1.16

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: 星/主役にする :: (判決などを)下すing ::

unpublished interface XIntegerBitmapColorSpace
Base Interfaces
XIntegerBitmapColorSpaceXColorSpace

XColorSpace
(言及/関連d interface's 要約:)
(警察などへの)密告,告訴(状) how to 解釈する/通訳する 確かな color data.
Usage 制限s
not published
Description
A color space for integer bitmap 判型s

This interface encapsulates all (警察などへの)密告,告訴(状) 明確な/細部 to a 確かな integer bitmap color space, like for example 1555 ARGB. 公式文書,認める that the individual elements of the integer color 代表 sequence need not correspond to the color space's 構成要素s - instead, the color 構成要素s might be packed 支援する-to-支援する into those bytes, as they appear in the raw bitmap data.


Methods' 要約
getBitsPerPixel Query number of bits used per bitmap pixel. 
getComponentBitCounts Query the number of bits used for each 構成要素. 
getEndianness Query whether color data bytes need to be swapped. 
convertFromIntegerColorSpace 変える integer bitmap color to generic IEEE 二塁打 装置 color of another color space. 
convertToIntegerColorSpace 変える integer bitmap color to integer bitmap color of another integer bitmap color space. 
convertIntegerToRGB 変える color value in this color space to sRGB color values. 
convertIntegerToARGB 変える color value in this color space to sRGB color values, with linear alpha. 
convertIntegerToPARGB 変える color value in this color space to premultiplied sRGB color values, with linear alpha. 
convertIntegerFromRGB 変える sRGB color to an integer 代表 in this color space. 
convertIntegerFromARGB 変える sRGB color with linear alpha into this color space. 
convertIntegerFromPARGB 変える premultiplied sRGB color with linear alpha into this color space. 
Methods' 詳細(に述べる)s
getBitsPerPixel
long
getBitsPerPixel();

Description
Query number of bits used per bitmap pixel.

This method 産する/生じるs the total number of bits used for a color value. At the associated XIntegerBitmap, the XIntegerBitmap::setPixel() method will 推定する/予想する a sequence of ceil(BitsPerPixel/8) bytes, and the XIntegerReadOnlyBitmap::getPixel() will return that number of bytes. 類似して, the color 転換 推定する/予想する input data in 多重のs of ceil(BitsPerPixel/8), and also return 変えるd data in chunks of this.

getComponentBitCounts
sequence< long >
getComponentBitCounts();

Description
Query the number of bits used for each 構成要素.

This method returnes a sequence of integers, each denoting the number of bits 占領するd by the 各々の 構成要素. The sum of all 構成要素 bits must be いっそう少なく or equal than the value returned from getBitsPerPixel(). If the sum is いっそう少なく, 超過 bits are always kept in the most 重要な bits of a pixel. Color 構成要素s will appear in the byte sequences returned from the XIntegerBitmap methods in the order defined here, with the first element starting from the least 重要な bits of the pixel, etc.

Example
For the typical 32 bit RGBA color data, the four values would all 含む/封じ込める the value eight. For a 16 bit 1555 ARGB 判型, with mask values 0x8000 for alpha, 0x7C for red, 0x3E for green and 0x1F for blue, the values would be 5, 5, 5, 1, in that order.
getEndianness
byte
getEndianness();

Description
Query whether color data bytes need to be swapped.

Returns
true, This method returns the endiannes of the color data. The value is one of the ::Endianness constants. If color data is 代表するd using more than one byte, the actual channel positions are 明示するd using bit positions. Therefore, depending on the architecture, the actual color data bytes might need to get swapped, for the bits to 提携させる 適切に.

Example
with a 16 bit 565 RGB 判型, written on a big endian architecture, a 目的地 machine using little endian CPU will need to 交換(する) the bytes, ーするために keep the green channel bits together.
convertFromIntegerColorSpace
sequence< ColorComponent >
convertFromIntegerColorSpace( [in] sequence< byte >  deviceColor,
[in] XColorSpace  targetColorSpace )
raises( ::com::sun::星/主役にする::lang::IllegalArgumentException );

Description
変える integer bitmap color to generic IEEE 二塁打 装置 color of another color space.

Color values are 適切に 一連の会議、交渉/完成するd and clipped, to be valid in the 的 color space.

Parameter deviceColor
Sequence of 装置 color 構成要素s. Is permitted to 含む/封じ込める more than one 装置 color element, therefore, (製品,工事材料の)一回分 転換 of 多重の color values is possible.

Returns
the corresponding sequence of 装置 colors in the 的 color space
Throws
a com::sun::星/主役にする::lang::IllegalArgumentException, if the input sequence does not match the 装置 color 判型.
convertToIntegerColorSpace
sequence< byte >
convertToIntegerColorSpace( [in] sequence< byte >  deviceColor,
[in] XIntegerBitmapColorSpace  targetColorSpace )
raises( ::com::sun::星/主役にする::lang::IllegalArgumentException );

Description
変える integer bitmap color to integer bitmap color of another integer bitmap color space.

Color values are 適切に 一連の会議、交渉/完成するd and clipped, to be valid in the 的 color space.

Parameter deviceColor
Sequence of 装置 color 構成要素s. Is permitted to 含む/封じ込める more than one 装置 color element, therefore, (製品,工事材料の)一回分 転換 of 多重の color values is possible.

Returns
the corresponding sequence of 装置 colors in the 的 color space
Throws
a com::sun::星/主役にする::lang::IllegalArgumentException, if the input sequence does not match the 装置 color 判型.
convertIntegerToRGB
sequence< RGBColor >
convertIntegerToRGB( [in] sequence< byte >  deviceColor )
raises( ::com::sun::星/主役にする::lang::IllegalArgumentException );

Description
変える color value in this color space to sRGB color values.

Any (警察などへの)密告,告訴(状) not representable in the RGBColor struct is discarded during the 転換. This 含むs alpha (警察などへの)密告,告訴(状). Color values are 適切に 一連の会議、交渉/完成するd and clipped, to be valid in the 的 color space.

Parameter deviceColor
Sequence of 装置 color 構成要素s. Is permitted to 含む/封じ込める more than one 装置 color element, therefore, (製品,工事材料の)一回分 転換 of 多重の color values is possible.
Returns
the corresponding sequence of sRGB colors.
Throws
a com::sun::星/主役にする::lang::IllegalArgumentException, if the input sequence does not match the 装置 color 判型.
See also
XIntegerBitmapColorSpace::convertIntegerToARGB
convertIntegerToARGB
sequence< ARGBColor >
convertIntegerToARGB( [in] sequence< byte >  deviceColor )
raises( ::com::sun::星/主役にする::lang::IllegalArgumentException );

Description
変える color value in this color space to sRGB color values, with linear alpha.

If the given input color does not carry alpha (警察などへの)密告,告訴(状), an alpha value of 1.0 (fully opaque) is assumed. Color values are 適切に 一連の会議、交渉/完成するd and clipped, to be valid in the 的 color space.

Parameter deviceColor
Sequence of 装置 color 構成要素s. Is permitted to 含む/封じ込める more than one 装置 color element, therefore, (製品,工事材料の)一回分 転換 of 多重の color values is possible.
Returns
the corresponding sequence of sRGB colors.
Throws
a com::sun::星/主役にする::lang::IllegalArgumentException, if the input sequence does not match the 装置 color 判型.
convertIntegerToPARGB
sequence< ARGBColor >
convertIntegerToPARGB( [in] sequence< byte >  deviceColor )
raises( ::com::sun::星/主役にする::lang::IllegalArgumentException );

Description
変える color value in this color space to premultiplied sRGB color values, with linear alpha.

If the given input color does not carry alpha (警察などへの)密告,告訴(状), an alpha value of 1.0 (fully opaque) is assumed. Color values are 適切に 一連の会議、交渉/完成するd and clipped, to be valid in the 的 color space. The resulting individual RGB color values are premultiplied by the alpha value (e.g. if alpha is 0.5, each color value has only half of the 初めの intensity).

Parameter deviceColor
Sequence of 装置 color 構成要素s. Is permitted to 含む/封じ込める more than one 装置 color element, therefore, (製品,工事材料の)一回分 転換 of 多重の color values is possible.
Returns
the corresponding sequence of sRGB colors.
Throws
a com::sun::星/主役にする::lang::IllegalArgumentException, if the input sequence does not match the 装置 color 判型.
convertIntegerFromRGB
sequence< byte >
convertIntegerFromRGB( [in] sequence< RGBColor >  rgbColor )
raises( ::com::sun::星/主役にする::lang::IllegalArgumentException );

Description
変える sRGB color to an integer 代表 in this color space.

If this color space 伝えるs alpha (警察などへの)密告,告訴(状), it is assumed be fully opaque for the given rgb color value. Color values are 適切に 一連の会議、交渉/完成するd and clipped, to be valid in the 的 color space.

Parameter deviceColor
Sequence of sRGB color 構成要素s. Is permitted to 含む/封じ込める more than one color element, therefore, (製品,工事材料の)一回分 転換 of 多重の color values is possible.
Returns
the corresponding sequence of 装置 colors.
Throws
a com::sun::星/主役にする::lang::IllegalArgumentException, if the input sequence does not match the 装置 color 判型.
convertIntegerFromARGB
sequence< byte >
convertIntegerFromARGB( [in] sequence< ARGBColor >  rgbColor )
raises( ::com::sun::星/主役にする::lang::IllegalArgumentException );

Description
変える sRGB color with linear alpha into this color space.

If this color space does not 伝える alpha (警察などへの)密告,告訴(状), the 明示するd alpha value is silently ignored. Color values are 適切に 一連の会議、交渉/完成するd and clipped, to be valid in the 的 color space.

Parameter deviceColor
Sequence of sRGB color 構成要素s. Is permitted to 含む/封じ込める more than one color element, therefore, (製品,工事材料の)一回分 転換 of 多重の color values is possible.
Returns
the corresponding sequence of 装置 colors.
Throws
a com::sun::星/主役にする::lang::IllegalArgumentException, if the input sequence does not match the 装置 color 判型.
convertIntegerFromPARGB
sequence< byte >
convertIntegerFromPARGB( [in] sequence< ARGBColor >  rgbColor )
raises( ::com::sun::星/主役にする::lang::IllegalArgumentException );

Description
変える premultiplied sRGB color with linear alpha into this color space.

If this color space does not 伝える alpha (警察などへの)密告,告訴(状), the 明示するd alpha value is silently ignored. Color values are 適切に 一連の会議、交渉/完成するd and clipped, to be valid in the 的 color space.

Parameter deviceColor
Sequence of sRGB color 構成要素s. Is permitted to 含む/封じ込める more than one color element, therefore, (製品,工事材料の)一回分 転換 of 多重の color values is possible. The individual RGB color values are assumed to be premultiplied by the alpha value already.
Returns
the corresponding sequence of 装置 colors.
Throws
a com::sun::星/主役にする::lang::IllegalArgumentException, if the input sequence does not match the 装置 color 判型.
最高の,を越す of Page

The ASF

Copyright & License | Privacy | 接触する Us | 寄付する | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are 登録(する)d trademarks of The Apache ソフトウェア 創立/基礎. The ASF logo is a trademark of The Apache ソフトウェア 創立/基礎. Other 指名するs appearing on the 場所/位置 may be trademarks of their 各々の owners.