diff options
| author | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2023-05-14 16:45:03 +0300 |
|---|---|---|
| committer | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2023-05-14 16:45:03 +0300 |
| commit | 7d54607a2a61b9a99376b385c40e94257365eb18 (patch) | |
| tree | 282168fa8e1f602d9e61877aae3968682b2a490e /Software/Visual_Studio/PPC/Tango.PPC.UI/Converters | |
| parent | 963f8c4fa2b4da7d875dc223cd70c55e0d5390c1 (diff) | |
| download | Tango-7d54607a2a61b9a99376b385c40e94257365eb18.tar.gz Tango-7d54607a2a61b9a99376b385c40e94257365eb18.zip | |
Working on Jerrican Levels Twine X4.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Converters')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/Converters/LiquidTypeToBrushConverter.cs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Converters/LiquidTypeToBrushConverter.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Converters/LiquidTypeToBrushConverter.cs index 8e419b6fd..f9ced3719 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Converters/LiquidTypeToBrushConverter.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Converters/LiquidTypeToBrushConverter.cs @@ -20,14 +20,7 @@ namespace Tango.PPC.UI.Converters { case BL.Enumerations.LiquidTypes.Lubricant: { - - ImageBrush lubricantBrush = new ImageBrush() { Stretch = Stretch.None, TileMode = TileMode.Tile, ViewportUnits = BrushMappingMode.Absolute }; - - BitmapSource bit_source = ResourceHelper.GetImageFromResources(@"Images/lubricant2.png"); - var targetBitmap = new WriteableBitmap(new TransformedBitmap(bit_source, new ScaleTransform(0.2, 0.2))); - lubricantBrush.ImageSource = targetBitmap; - lubricantBrush.Viewport = new System.Windows.Rect(2, 2, targetBitmap.Width, targetBitmap.Height); - return lubricantBrush; + return Application.Current.Resources["TangoLubricantBrush"] as Brush; } case BL.Enumerations.LiquidTypes.Cleaner: { |
