private float GetZ() { if (!this.IsFrameSelected || this.CurrentFrame.Frame.Width <= MouseLocation.X || CurrentFrame.Frame.Height <= MouseLocation.Y) { return 0; } return this.CurrentFrame.Frame[(int)MouseLocation.X, (int)MouseLocation.Y]; }