123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- using PixiEditor.Helpers;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Diagnostics;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Media;
- using System.Windows.Media.Imaging;
- namespace PixiEditor.Models
- {
- public class Layer : BasicLayer
- {
- private WriteableBitmap _layerBitmap;
- public WriteableBitmap LayerBitmap
- {
- get { return _layerBitmap; }
- set {
- _layerBitmap = value;
- RaisePropertyChanged("LayerBitmap");
- }
- }
- public Layer(int width, int height)
- {
- Layer layer = LayerGenerator.Generate(width, height);
- LayerBitmap = layer.LayerBitmap;
- Width = width;
- Height = height;
- }
- public Layer(WriteableBitmap layerBitmap)
- {
- LayerBitmap = layerBitmap;
- Width = (int) layerBitmap.Width;
- Height = (int) layerBitmap.Height;
- }
- }
- }
|