.\" Copyright \(co 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1994, 1996 X Consortium .\" .\" Permission is hereby granted, free of charge, to any person obtaining .\" a copy of this software and associated documentation files (the .\" "Software"), to deal in the Software without restriction, including .\" without limitation the rights to use, copy, modify, merge, publish, .\" distribute, sublicense, and/or sell copies of the Software, and to .\" permit persons to whom the Software is furnished to do so, subject to .\" the following conditions: .\" .\" The above copyright notice and this permission notice shall be included .\" in all copies or substantial portions of the Software. .\" .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. .\" IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR .\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, .\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR .\" OTHER DEALINGS IN THE SOFTWARE. .\" .\" Except as contained in this notice, the name of the X Consortium shall .\" not be used in advertising or otherwise to promote the sale, use or .\" other dealings in this Software without prior written authorization .\" from the X Consortium. .\" .\" Copyright \(co 1985, 1986, 1987, 1988, 1989, 1990, 1991 by .\" Digital Equipment Corporation .\" .\" Portions Copyright \(co 1990, 1991 by .\" Tektronix, Inc. .\" .\" Permission to use, copy, modify and distribute this documentation for .\" any purpose and without fee is hereby granted, provided that the above .\" copyright notice appears in all copies and that both that copyright notice .\" and this permission notice appear in all copies, and that the names of .\" Digital and Tektronix not be used in in advertising or publicity pertaining .\" to this documentation without specific, written prior permission. .\" Digital and Tektronix makes no representations about the suitability .\" of this documentation for any purpose. .\" It is provided ``as is'' without express or implied warranty. .\" .\" Copyright (c) 1998, 2001 The X Japanese Documentation Project. .\" .\" Permission is hereby granted, free of charge, to any person obtaining a .\" copy of this software and associated documentation files (the .\" "Software"), to deal in the Software without restriction, including .\" without limitation the rights to use, copy, modify, merge, publish, dis- .\" tribute, sublicense, and/or sell copies of the Software, and to permit .\" persons to whom the Software is furnished to do so, subject to the fol- .\" lowing conditions: .\" .\" The above copyright notice and this permission notice shall be included .\" in all copies or substantial portions of the Software. .\" .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL- .\" ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT .\" SHALL THE X JAPANESE DOCUMENTATION PROJECT BE LIABLE FOR ANY CLAIM, .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE. .\" .\" Except as contained in this notice, the name of The X Japanese .\" Documentation Project shall not be used in advertising or otherwise to .\" promote the sale, use or other dealings in this Software without prior .\" written authorization from The X Japanese Documentation Project. .\" .\" X Window System is a trademark of The Open Group. .\" .\" Translated Tue Oct 27 00:00:00 JST 1998 .\" by FUJIWARA Teruyoshi .\" Updated Tue Oct 9 01:05:03 JST 2001 for XFree86 4.1.0 .\" by FUJIWARA Teruyoshi .\" .\" $XFree86: xc/doc/man/X11/XcmsQClr.man,v 3.3 2001/01/27 18:20:07 dawes Exp $ .\" .ds xT X Toolkit Intrinsics \- C Language Interface .ds xW Athena X Widgets \- C Language X Toolkit Interface .ds xL Xlib \- C Language X Interface .ds xC Inter-Client Communication Conventions Manual .na .de Ds .nf .\\$1D \\$2 \\$1 .ft 1 .\".ps \\n(PS .\".if \\n(VS>=40 .vs \\n(VSu .\".if \\n(VS<=39 .vs \\n(VSp .. .de De .ce 0 .if \\n(BD .DF .nr BD 0 .in \\n(OIu .if \\n(TM .ls 2 .sp \\n(DDu .fi .. .de FD .LP .KS .TA .5i 3i .ta .5i 3i .nf .. .de FN .fi .KE .LP .. .de IN \" send an index entry to the stderr .. .de C{ .KS .nf .D .\" .\" choose appropriate monospace font .\" the imagen conditional, 480, .\" may be changed to L if LB is too .\" heavy for your eyes... .\" .ie "\\*(.T"480" .ft L .el .ie "\\*(.T"300" .ft L .el .ie "\\*(.T"202" .ft PO .el .ie "\\*(.T"aps" .ft CW .el .ft R .ps \\n(PS .ie \\n(VS>40 .vs \\n(VSu .el .vs \\n(VSp .. .de C} .DE .R .. .de Pn .ie t \\$1\fB\^\\$2\^\fR\\$3 .el \\$1\fI\^\\$2\^\fP\\$3 .. .de ZN .ie t \fB\^\\$1\^\fR\\$2 .el \fI\^\\$1\^\fP\\$2 .. .de hN .ie t <\fB\\$1\fR>\\$2 .el <\fI\\$1\fP>\\$2 .. .de NT .ne 7 .ds NO Note .if \\n(.$>$1 .if !'\\$2'C' .ds NO \\$2 .if \\n(.$ .if !'\\$1'C' .ds NO \\$1 .ie n .sp .el .sp 10p .TB .ce \\*(NO .ie n .sp .el .sp 5p .if '\\$1'C' .ce 99 .if '\\$2'C' .ce 99 .in +5n .ll -5n .R .. . \" Note End -- doug kraft 3/85 .de NE .ce 0 .in -5n .ll +5n .ie n .sp .el .sp 10p .. .ny0 .TH XcmsQueryColor 3X11 "Release 6.5" "X Version 11" "XLIB FUNCTIONS" .SH 名前 .\"0 XcmsQueryColor, XcmsQueryColors, XcmsLookupColor \- obtain color values XcmsQueryColor, XcmsQueryColors, XcmsLookupColor \- 色の値を取得する .SH 書式 Status XcmsQueryColor\^(\^\fIdisplay\fP, \fIcolormap\fP\^, \fIcolor_in_out\fP\^, \fIresult_format\fP\^) .br Display *\fIdisplay\fP\^; .br Colormap \fIcolormap\fP\^; .br XcmsColor *\fIcolor_in_out\fP\^; .br XcmsColorFormat \fIresult_format\fP\^; .LP Status XcmsQueryColors\^(\^\fIdisplay\fP, \fIcolormap\fP\^, \fIcolors_in_out\fP\^, \fIncolors\fP\^, \fIresult_format\fP\^) .br Display *\fIdisplay\fP\^; .br Colormap \fIcolormap\fP\^; .br XcmsColor \fIcolors_in_out\fP\^[\^]\^; .br unsigned int \fIncolors\fP\^; .br XcmsColorFormat \fIresult_format\fP\^; .LP Status XcmsLookupColor\^(\^\fIdisplay\fP, \fIcolormap\fP\^, \fIcolor_string\fP\^, \fIcolor_exact_return\fP\^, \fIcolor_screen_return\fP\^, .br \fIresult_format\fP\^) .br Display *\fIdisplay\fP\^; .br Colormap \fIcolormap\fP\^; .br char *\fIcolor_string\fP\^; .br XcmsColor *\fIcolor_exact_return\fP\^, *\fIcolor_screen_return\fP\^; .br XcmsColorFormat \fIresult_format\fP\^; .SH 引き数 .IP \fIdisplay\fP 1i .\"0 Specifies the connection to the X server. X サーバへの接続を指定する。 .IP \fIcolormap\fP 1i .\"0 Specifies the colormap. カラーマップを指定する。 .IP \fIcolor_exact_return\fP 1i .\"0 Returns the color specification parsed from the color string .\"0 or parsed from the corresponding string found in a color-name database. 色文字列から展開された表色や、色名データベースで見つかった対応する文字 列から展開された表色が返される。 .IP \fIcolor_in_out\fP 1i .\"0 Specifies the pixel member that indicates the color cell to query. 問い合わせるカラーセルを示す pixel メンバを指定する。 .\"0 The color specification stored for the color cell is returned in this .\"0 .ZN XcmsColor .\"0 structure. カラーセルに格納される表色は、この .ZN XcmsColor 構造体に返される。 .IP \fIcolor_screen_return\fP 1i .\"0 Returns the color that can be reproduced on the screen. スクリーン上で複写することができる色が返される。 .ds St .IP \fIcolor_string\fP 1i .\"0 Specifies the color string\*(St. 色文字列を指定する。 .IP \fIresult_format\fP 1i .\"0 Specifies the color format for the returned color .\"0 specifications (color_screen_return and color_exact_return arguments). 返される表色(引き数 color_screen_return と color_exact_return arguments) に対する色のフォーマットを指定する。 .\"0 If the format is .\"0 .ZN XcmsUndefinedFormat .\"0 and the color string contains a .\"0 numerical color specification, .\"0 the specification is returned in the format used in that numerical .\"0 color specification. フォーマットが .ZN XcmsUndefinedFormat であり、色文字列が数値で表される表色の場合、表色はその数値形式の表色で 用いられるフォーマットで返される。 .\"0 If the format is .\"0 .ZN XcmsUndefinedFormat .\"0 and the color string contains a color name, .\"0 the specification is returned in the format used .\"0 to store the color in the database. フォーマットが .ZN XcmsUndefinedFormat であり、色文字列が色の名前を含む場合、表色はデータベースに色を格納する ために用いられるフォーマットで返される。 .IP \fIncolors\fP 1i .\"0 Specifies the number of .\"0 .ZN XcmsColor .\"0 structures in the color-specification array. 表色の配列内の .ZN XcmsColor 構造体の数を指定する。 .SH 説明 .\"0 The .\"0 .ZN XcmsQueryColor .\"0 function obtains the RGB value .\"0 for the pixel value in the pixel member of the specified .\"0 .ZN XcmsColor .\"0 structure and then .\"0 converts the value to the target format as .\"0 specified by the result_format argument. 関数 .ZN XcmsQueryColor は、指定した .ZN XcmsColor 構造体の pixel メンバのピクセル値に対する RGB 値を取得し、この値を result_format で指定された目的フォーマットに変換する。 .\"0 If the pixel is not a valid index in the specified colormap, a .\"0 .ZN BadValue .\"0 error results. ピクセル値が指定したカラーマップ内の有効なインデックスでない場合は、 エラー .ZN BadValue となる。 .\"0 The .\"0 .ZN XcmsQueryColors .\"0 function obtains the RGB values .\"0 for pixel values in the pixel members of .\"0 .ZN XcmsColor .\"0 structures and then .\"0 converts the values to the target format as .\"0 specified by the result_format argument. 関数 .ZN XcmsQueryColors は、複数の .ZN XcmsColor 構造体の pixel メンバのピクセル値に対する RGB 値を取得し、この値を引き数 result_formt で指定された目的フォーマットに変更する。 .\"0 If a pixel is not a valid index into the specified colormap, a .\"0 .ZN BadValue .\"0 error results. ピクセル値が指定したカラーマップ内の有効なインデックスでない場合は、 エラー .ZN BadValue となる。 .\"0 If more than one pixel is in error, .\"0 the one that gets reported is arbitrary. 1つより多くのピクセルがエラーになった場合、通知されるエラーはどれかわ からない。 .LP .\"0 .ZN XcmsQueryColor .\"0 and .\"0 .ZN XcmsQueryColors .\"0 can generate .\"0 .ZN BadColor .\"0 and .\"0 .ZN BadValue .\"0 errors. .ZN XcmsQueryColor と .ZN XcmsQueryColors は、エラー .ZN BadColor , .ZN BadValue を起こすことがある。 .LP .\"0 The .\"0 .ZN XcmsLookupColor .\"0 function looks up the string name of a color with respect to the screen .\"0 associated with the specified colormap. 関数 .ZN XcmsLookupColor は、指定したカラーマップに関連するスクリーンについて、色名の文字列を 使った検索を行う。 .\"0 It returns both the exact color values and .\"0 the closest values provided by the screen .\"0 with respect to the visual type of the specified colormap. この関数は正確な色の値と、指定したカラーマップのビジュアル型に関し てスクリーンが提供する最も近い値の両方を返す。 .\"0 The values are returned in the format specified by result_format. 値は、引き数 result_format で指定したフォーマットで返される。 .\"0 If the color name is not in the Host Portable Character Encoding, .\"0 the result is implementation-dependent. 色の名前のエンコーディングがホストポータブル文字エンコーディングでない 場合、結果は実装依存である。 .\"0 Use of uppercase or lowercase does not matter. 大文字でも小文字でも結果は同じである。 .\"0 .ZN XcmsLookupColor .\"0 returns .\"0 .ZN XcmsSuccess .\"0 or .\"0 .ZN XcmsSuccessWithCompression .\"0 if the name is resolved; otherwise, it returns .\"0 .ZN XcmsFailure . .ZN XcmsLookupColor は、名前を解決することができれば .ZN XcmsSuccess または .ZN XcmsSuccessWithCompression を返す。そうでない場合には .ZN XcmsFailure を返す。 .\"0 If .\"0 .ZN XcmsSuccessWithCompression .\"0 is returned, the color specification returned in .\"0 color_screen_return is the result of gamut compression. .ZN XcmsSuccessWithCompression が返された場合、color_screen_return に返される表色はガモット圧縮した結 果である。 .SH 返り値 .TP 1i .ZN BadColor .\"0 A value for a Colormap argument does not name a defined Colormap. 引き数 Colormap の値が、定義されている Colormap を指していない。 .TP 1i .ZN BadValue .\"0 Some numeric value falls outside the range of values accepted by the request. .\"0 Unless a specific range is specified for an argument, the full range defined .\"0 by the argument's type is accepted. Any argument defined as a set of .\"0 alternatives can generate this error. 指定された数値に、リクエストの許容範囲を越えているものがある。引き数に対 して特定の範囲が指定されていなければ、引き数の型で定義されている全ての範 囲が許される。選択肢として定義されている引き数はこのエラーを起こすことが ある。 .SH 関連項目 XcmsAllocColor(3X11), XcmsStoreColor(3X11), XQueryColor(3X11) .br \fI\*(xL\fP