示例#1
0
        /// <summary>
        /// Create a new tile and fill it with the default value for the layer
        /// </summary>
        /// <param name="tileCoord"></param>
        /// <returns></returns>
        protected override MapBuffer CreateTileImpl(CoordXZ tileCoord)
        {
            MapBuffer buffer = new MapBufferARGB(map, samplesPerTile, metersPerSample);

            buffer.Fill((uint)defaultColor.ToARGB());

            return(buffer);
        }
示例#2
0
        public static int ConvertColorValue(ColorEx color, VertexElementType colorVertexElementType)
        {
            switch (colorVertexElementType)
            {
#if AXIOM_PLATFORM == AXIOM_PLATFORM_WIN32
            default:
#endif
            case VertexElementType.Color_ARGB:
                return(color.ToARGB());

#if AXIOM_PLATFORM != OGRE_PLATFORM_WIN32
            default:
#endif
            case VertexElementType.Color_ABGR:
                return(color.ToABGR());
            }
        }
 private Color ColorExToColor(ColorEx cx)
 {
     return(Color.FromArgb((int)cx.ToARGB()));
 }
示例#4
0
 private System.Drawing.Color ColorExToColor(ColorEx color)
 {
     return(System.Drawing.Color.FromArgb((int)cx.ToARGB()));
 }