// TODO: add "name" parameter, keep this for legacy and fill it in with "Background" // goal is to put complete burden of loc on the client public static BitmapLayer CreateBackgroundLayer(int width, int height) { // set colors to 0xffffffff // note: we use alpha of 255 here so that "invert colors" works as expected // that is, for just 1 layer we invert the initial white->black // but on subsequent layers we invert transparent white -> transparent black, which shows up as white for the most part BitmapLayer layer = new BitmapLayer(width, height, ColorBgra.White); // layer.Name = PdnResources.GetString("Layer.Background.Name"); // tag it as a background layer layer.properties.isBackground = true; return(layer); }
protected BitmapLayer(BitmapLayer copyMe) : base(copyMe) { this.surface = copyMe.Surface.Clone(); this.properties = (BitmapLayerProperties)copyMe.properties.Clone(); }