예제 #1
0
        void applyColor(SVGProperties pSVGProperties, int pColor, bool pModeFill)
        {
            int c = (int)((ColorUtils.COLOR_MASK_32BIT_ARGB_RGB & pColor) | ColorUtils.COLOR_MASK_32BIT_ARGB_ALPHA);

            this.mPaint.Color = new Color(c);
            this.mPaint.Alpha = SVGPaint.parseAlpha(pSVGProperties, pModeFill);
        }
예제 #2
0
파일: SVGHandler.cs 프로젝트: znsoft/xamsvg
 public SVGHandler(Picture pPicture, ISvgColorMapper pSVGColorMapper)
 {
     this.mPicture  = pPicture;
     this.mSVGPaint = new SVGPaint(pSVGColorMapper);
 }
예제 #3
0
 public SVGHandler(Picture pPicture, ISvgColorMapper pSVGColorMapper)
 {
     this.mPicture  = pPicture;
     this.mSVGPaint = new SVGPaint(pSVGColorMapper);
     //this.mSVGPaint.isStancil = true;
 }
예제 #4
0
 public SVGHandler(Picture pPicture, ISvgColorMapper pSVGColorMapper, bool isStencil)
 {
     this.mPicture            = pPicture;
     this.mSVGPaint           = new SVGPaint(pSVGColorMapper);
     this.mSVGPaint.isStancil = isStencil;
 }
예제 #5
0
		public SVGHandler(Picture pPicture, ISvgColorMapper pSVGColorMapper) {
			this.mPicture = pPicture;
			this.mSVGPaint = new SVGPaint(pSVGColorMapper);
		}