Description
The FlipHorizontal
method in the Sandbox.Bitmap
class is used to create a horizontally flipped version of the current bitmap. This method processes the bitmap data to reverse the order of pixels along the horizontal axis, effectively mirroring the image from left to right.
Usage
To use the FlipHorizontal
method, simply call it on an instance of the Bitmap
class. This method does not take any parameters and returns a new Bitmap
instance with the image flipped horizontally.
Example
// Example of using FlipHorizontal
Bitmap originalBitmap = new Bitmap();
// Assume originalBitmap is initialized and contains image data
Bitmap flippedBitmap = originalBitmap.FlipHorizontal();
// Now, flippedBitmap contains the horizontally flipped image of originalBitmap