Esempio n. 1
0
        // Convert a color into a pixel value, relative to this drawable.
        internal virtual XPixel ToPixel(Color color)
        {
            // Expand standard color indices.
            if (color.Index != StandardColor.RGB)
            {
                color = screen.ToColor(color.Index);
            }

            // Map the color using the screen's colormap.
            return(screen.DefaultColormap.RGBToPixel(color));
        }