Use ImageEditorInterpolationMode.NearestNeighbor for sticker

This commit is contained in:
Jaex 2018-02-06 12:59:10 +03:00
parent 4e7b076719
commit 7f5d448c4c
2 changed files with 10 additions and 1 deletions

View file

@ -33,7 +33,7 @@ public class ImageDrawingShape : BaseDrawingShape
public override ShapeType ShapeType { get; } = ShapeType.DrawingImage;
public Image Image { get; protected set; }
public ImageEditorInterpolationMode ImageInterpolationMode { get; private set; }
public ImageEditorInterpolationMode ImageInterpolationMode { get; protected set; }
public override void OnConfigLoad()
{

View file

@ -37,6 +37,15 @@ public class StickerDrawingShape : ImageDrawingShape
{
public override ShapeType ShapeType { get; } = ShapeType.DrawingSticker;
public override void OnConfigLoad()
{
ImageInterpolationMode = ImageEditorInterpolationMode.NearestNeighbor;
}
public override void OnConfigSave()
{
}
public override void ShowNodes()
{
}