Rectangle selection = EnvironmentParameters.SelectionBounds
Void Render(Surface dst, Surface src, Rectangle rect)įloat position = (float)(d_position / 100) SelectionSurface.CopySurface(src, Point.Empty, selection) SelectionSurface = new Surface(selection.Size)
SelectionSurface?.Dispose() selectionSurface = null If (selectionSurface = null || selectionSurface.Size != selection.Size) which is useful for clamping to selection Thanks to toe_head2001 for this PreRender code Title: BoltBait's Skew - Horizontal v1.0ĭoubleSliderControl degree = 0 // AngleĭoubleSliderControl d_position = 50 // Position(%)ĬheckboxControl selection_clamp = true // Clamp to SelectionĬheckboxControl nearest_mode = false // Nearest NeighborĬheckboxControl wraparound_mode = false // Wrapped Name: Skew Horizontal // Submenu: Distort // Author: BoltBait // Title: BoltBait's Skew - Horizontal v1.0 // Version: 1.0 // Desc: Skew selection // Keywords: skew // URL: // Force Aliased Selection #region UICode IntSliderControl Amount1 = 0 // CheckboxControl Amount5 = true // Fine Control CheckboxControl Amount4 = true // Clamp to Selection CheckboxControl Amount2 = false // Nearest Neighbor CheckboxControl Amount3 = false // Wrapped #endregion Surface selectionSurface = null void PreRender ( Surface dst, Surface src )