private ICanvasImage CreateColorManagement() { var srgb = new ColorManagementProfile(CanvasColorSpace.Srgb); var scrgb = new ColorManagementProfile(CanvasColorSpace.ScRgb); var srgbToScRgb = new ColorManagementEffect { Source = bitmapTiger, SourceColorProfile = srgb, OutputColorProfile = scrgb, }; var scRgbToSrgb = new ColorManagementEffect { Source = bitmapTiger, SourceColorProfile = scrgb, OutputColorProfile = srgb, }; animationFunction = elapsedTime => { }; currentEffectSize = bitmapTiger.Size.ToVector2() * new Vector2(1, 2.1f); return(new CompositeEffect { Sources = { AddTextOverlay(srgbToScRgb, 0, 0, "Srgb -> ScRgb"), new Transform2DEffect { Source = AddTextOverlay(scRgbToSrgb,0, 0, "ScRgb -> Srgb"), TransformMatrix = Matrix3x2.CreateTranslation(bitmapTiger.Size.ToVector2() * new Vector2(0, 1.1f)) } } }); }
private ICanvasImage CreateColorManagement() { var srgb = new ColorManagementProfile(CanvasColorSpace.Srgb); var scrgb = new ColorManagementProfile(CanvasColorSpace.ScRgb); var srgbToScRgb = new ColorManagementEffect { Source = bitmapTiger, SourceColorProfile = srgb, OutputColorProfile = scrgb, }; var scRgbToSrgb = new ColorManagementEffect { Source = bitmapTiger, SourceColorProfile = scrgb, OutputColorProfile = srgb, }; animationFunction = elapsedTime => { }; currentEffectSize = bitmapTiger.Size.ToVector2() * new Vector2(1, 2.1f); return new CompositeEffect { Sources = { AddTextOverlay(srgbToScRgb, 0, 0, "Srgb -> ScRgb"), new Transform2DEffect { Source = AddTextOverlay(scRgbToSrgb, 0, 0, "ScRgb -> Srgb"), TransformMatrix = Matrix3x2.CreateTranslation(bitmapTiger.Size.ToVector2() * new Vector2(0, 1.1f)) } } }; }