Beispiel #1
0
        public EditImage(string path, EditPictureProperties properties)
        {
            picBytes = File.ReadAllBytes(path);

            BitmapImage originalBmp = LoadBitmap(picBytes, IntSize.Empty);

            OriginalSize = new IntSize(originalBmp.PixelWidth, originalBmp.PixelHeight);

            Properties = properties;

            SetImage();
        }
Beispiel #2
0
        public EditImage(byte[] pictureBytes, IntSize wanna, EditModeType modeType, bool flipX, bool flipY,
                         IntPoint offset, EditReferencePositionType referencePositionType)
        {
            picBytes = pictureBytes;

            BitmapImage originalBmp = LoadBitmap(picBytes, IntSize.Empty);

            OriginalSize = new IntSize(originalBmp.PixelWidth, originalBmp.PixelHeight);

            Properties = new EditPictureProperties(flipX, flipY,
                                                   wanna, offset, modeType, referencePositionType);

            SetImage();
        }