本文整理汇总了C#中Cairo.Rectangle类的典型用法代码示例。如果您正苦于以下问题:C#Cairo.Rectangle类的具体用法?C#Cairo.Rectangle怎么用?C#Cairo.Rectangle使用的例子?这里精选的类代码示例或许可以为您提供帮助。
示例1:OnExposeEvent protectedoverrideboolOnExposeEvent(Gdk.EventExposeevnt) { using(varctx=Gdk.CairoHelper.Create(evnt.Window)){ ctx.LineWidth=1; varrect=newGdk.Rectangle(Allocation.X,Allocation.Y,Allocation.Width,Allocation.Height);
varshadowColor=CairoExtensions.ParseColor(Styles.WelcomeScreen.Pad.ShadowColor); intinset=2; varss=Styles.WelcomeScreen.Pad.ShadowSize; varr=newCairo.Rectangle(rect.X+ss+0.5,rect.Y+ss+0.5,rect.Width-ss*2-1,rect.Height-ss*2-1); varsr=newCairo.Rectangle(r.X+inset,r.Y+inset+Styles.WelcomeScreen.Pad.ShadowVerticalOffset,r.Width-inset*2,r.Height-inset*2); intsize=Styles.WelcomeScreen.Pad.ShadowSize; doublealpha=0.2; doublealphaDec=0.2/(double)size; for(intn=0;n
原文链接:http://www.jxszl.com/biancheng/C/556638.html