חלל צבעוני

צבע

The Color מדרגה מייצגת ערכים צבעוניים המשמשים לגבולות ההרשמה, רקע, צבעים נוצרים באמצעות שיטות מפעל:

// RGB color with components in range [0.0, 1.0]
Color red   = Color.fromRgb(1, 0, 0);
Color green = Color.fromRgb(0, 1, 0);
Color black = Color.BLACK;
Color white = Color.WHITE;

Color.fromRgb(r, g, b) מקבלת שלושה ערכים כפולים ב [0.0, 1.0] עבור אדום, ירוק, תופעות לוואי: נקראים קבועים כולל Color.BLACK, Color.WHITE,וגם אחרים.

צבעים של הצהרות

צבעים משתמשים ב AppearanceCharacteristics.setBorder(color) על האנטומיה גבולות ו setBackground(color) על תפריט המלא:

WidgetAnnotation w = new WidgetAnnotation(page, new Rectangle(0, 0, 100, 50));
w.getCharacteristics().setBorder(Color.fromRgb(1, 0, 0));
w.getCharacteristics().setBackground(Color.fromRgb(0.9, 0.9, 1.0));

PDF צבעים חלל

PDF תומך בחלקי צבע רבים, כולל DeviceRGB, DevicCMYK, ו- DevicesGray., מקומות אירוח מבוססים על ICC.The Color מפות בכיתה ל- DeviceRGB לשימוש בהערות.

ראה גם

 עברית