示例#1
0
 public CommonImageBrush(
     string imageSource,
     CommonAlignmentX alignmentX,
     CommonAlignmentY alignmentY,
     CommonStretch stretch,
     CommonTileMode tileMode,
     CommonRectangle viewBox,
     CommonBrushMappingMode viewBoxUnits,
     CommonRectangle viewPort,
     CommonBrushMappingMode viewPortUnits,
     double opacity = 1.0)
     : base(alignmentX, alignmentY, stretch, tileMode, viewBox, viewBoxUnits, viewPort, viewPortUnits, opacity)
 {
     ImageSource = imageSource;
 }
 public CommonTileBrush(
     CommonAlignmentX alignmentX,
     CommonAlignmentY alignmentY,
     CommonStretch stretch,
     CommonTileMode tileMode,
     CommonRectangle viewBox,
     CommonBrushMappingMode viewBoxUnits,
     CommonRectangle viewPort,
     CommonBrushMappingMode viewPortUnits,
     double opacity = 1.0)
     : base(opacity)
 {
     AlignmentX    = alignmentX;
     AlignmentY    = alignmentY;
     Stretch       = stretch;
     TileMode      = tileMode;
     ViewBox       = viewBox;
     ViewBoxUnits  = viewBoxUnits;
     ViewPort      = viewPort;
     ViewPortUnits = viewPortUnits;
 }