public BlitSpriteFrame(BlitFrame blitFrame) { var width = blitFrame.Width; var height = blitFrame.Height; var x = blitFrame.OffsetX; var y = blitFrame.OffsetY; Size = new Size(width, height); FrameSize = new Size(width, height); Offset = new int2(width / 2 - x, height / 2 - y); Data = blitFrame.Pixels; }
public BlitSpriteFrame(BlitFrame blitFrame) { this.FrameSize = this.Size = new(blitFrame.Width, blitFrame.Height); this.Offset = new int2(blitFrame.Width / 2, blitFrame.Height / 2) - blitFrame.Offset; this.Data = blitFrame.Pixels; }