CSharp System.Drawing Bitmap

CSharp examples for System.Drawing:Bitmap

Description

Click the following links for the tutorial for System.Drawing and Bitmap.

  1. Get Encoder Info by format
  2. Get Bits Per Pixel by pixel format
  3. Swaps the alpha and value channels of a monochrome image. Transparent areas become black, and black areas become transparent.
  4. Gradient Coherent Noise
  5. Colors from Bitmap
  6. For Each color in Bitmap
  7. Get Average Color from Bitmap
  8. Check Color within Bitmap


  9. Bitmap Gamma
  10. Create Bitmap Image from String text
  11. Find Match between two Bitmap
  12. copy one bitmap into another with stretching
  13. Creates an 8-bit grayscale bitmap with the contents of the supplied bitmap's specified channel
  14. Masks a bitmap by combining its alpha with the provided alpha mask.
  15. Load Bitmap
  16. Loads a bitmap from file.


  17. Get Bitmap Sum
  18. New Bitmap Image from Uri
  19. Reverses a bitmap, effectively rotating it 180 degrees in 3D space about the X axis. Results in an upside-down view of the image
  20. Attempts to download a bitmap from a given URI, then loads the bitmap into a Bitmap object and returns. Obviously there are numerous failure cases for a function like this. For ease of use, all errors will be reported in a catch-all BitmapManipException, which provides a textual error message based on the exception that occurs. As usual, the underlying exception is available in InnerException property.
  21. Renders a bitmap over another bitmap, with a specific alpha value. This can be used to overlay a logo or watermark over a bitmap
  22. Scales a bitmap by a scale factor, growing or shrinking both axes independently, possibly changing the aspect ration
  23. Reverses a bitmap, effectively rotating it 180 degrees in 3D space about the Y axis. Results in a "mirror image" of the bitmap, reversed much as it would be in a mirror
  24. Take a bitmap and lighten it by a given percentage
  25. Counts the number of colors in a bitmap, up through the given maximum. If the maximum is reached, the method will return early.
  26. Inverts the colors in a bitmap.
  27. Checks if the given bitmap is a single color. If the result is true, its color will be stored in the second parameter.
  28. Checks whether an area of a bitmap contains entirely the specified alpha value
  29. Get Sample String from Bitmap
  30. Get Bitmap Region Color
  31. Compare Bitmaps
  32. Made New Bitmap
  33. get Data from PixelBitmapContent
  34. set Data to PixelBitmapContent