PALETTERGB

#define global ctype PALETTERGB( rgb )

引数

r : R彩度、8bitの数値/数値変数
g : G彩度、8bitの数値/数値変数
b : B彩度、8bitの数値/数値変数

戻り値

The PALETTERGB macro accepts three values that represent the relative intensities of red, green, and blue and returns a palette-relative red, green, blue (RGB) specifier consisting of 2 in the high-order byte and an RGB value in the three low-order bytes. An application using a color palette can pass this specifier, instead of an explicit RGB value, to functions that expect a color.

解説

The return value is a palette-relative RGB specifier. For output devices that support logical palettes, the system matches a palette-relative RGB value to the nearest color in the logical palette of the device context as though the application had specified an index to that palette entry. If an output device does not support a system palette, the system uses the palette-relative RGB as though it were a conventional RGB value returned by the RGB macro.
引数はキャストするため変数のオーバーフローはありませんがデータは崩れます。

定義ファイル

gdi.asに定義、Proj.API.as,Proj.API/winapi/gdi.asをinclude。

参照

標準添付 ライブラリ|gdi.as

goto Top

Copyright(C) by Project.API

楽天モバイル[UNLIMITが今なら1円] ECナビでポインと Yahoo 楽天 LINEがデータ消費ゼロで月額500円〜!


無料ホームページ 無料のクレジットカード 海外格安航空券 解約手数料0円【あしたでんき】 海外旅行保険が無料! 海外ホテル