|
|
|
|
|
|
ImageRepeat repeat = ImageRepeat.noRepeat, |
|
|
|
Rect centerSlice = null, |
|
|
|
bool invertColors = false, |
|
|
|
FilterMode filterMode = FilterMode.Bilinear |
|
|
|
FilterMode filterMode = FilterMode.Bilinear , |
|
|
|
FilterQuality filterQuality = FilterQuality.low |
|
|
|
|
|
|
|
) : base(key) { |
|
|
|
this.image = image; |
|
|
|
this.width = width; |
|
|
|
|
|
|
this.centerSlice = centerSlice; |
|
|
|
this.invertColors = invertColors; |
|
|
|
this.filterMode = filterMode; |
|
|
|
this.filterQuality = filterQuality; |
|
|
|
} |
|
|
|
|
|
|
|
public readonly ui.Image image; |
|
|
|
|
|
|
public readonly ImageRepeat repeat; |
|
|
|
public readonly Rect centerSlice; |
|
|
|
public readonly bool invertColors; |
|
|
|
public readonly FilterQuality filterQuality; |
|
|
|
|
|
|
|
public override RenderObject createRenderObject(BuildContext context) { |
|
|
|
return new RenderImage( |
|
|
|
|
|
|
alignment: alignment, |
|
|
|
repeat: repeat, |
|
|
|
centerSlice: centerSlice, |
|
|
|
invertColors: invertColors |
|
|
|
// filterMode: filterMode
|
|
|
|
invertColors: invertColors, |
|
|
|
filterQuality: filterQuality |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
renderImage.repeat = repeat; |
|
|
|
renderImage.centerSlice = centerSlice; |
|
|
|
renderImage.invertColors = invertColors; |
|
|
|
// renderImage.filterMode = filterMode;
|
|
|
|
renderImage.filterQuality = filterQuality; |
|
|
|
} |
|
|
|
|
|
|
|
public override void debugFillProperties(DiagnosticPropertiesBuilder properties) { |
|
|
|