UtilImageCreateSolidcolorBitmap Method
Creates a Bitmap image which is filled with the specified solid color.
Namespace: DevCase.Core.Media.GraphicsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static Bitmap CreateSolidcolorBitmap(
Size size,
Color fillColor,
PixelFormat pixelFormat = PixelFormat.Format32bppArgb
)
Public Shared Function CreateSolidcolorBitmap (
size As Size,
fillColor As Color,
Optional pixelFormat As PixelFormat = PixelFormat.Format32bppArgb
) As Bitmap
Dim size As Size
Dim fillColor As Color
Dim pixelFormat As PixelFormat
Dim returnValue As Bitmap
returnValue = UtilImage.CreateSolidcolorBitmap(size,
fillColor, pixelFormat)
public:
static Bitmap^ CreateSolidcolorBitmap(
Size size,
Color fillColor,
PixelFormat pixelFormat = PixelFormat::Format32bppArgb
)
static member CreateSolidcolorBitmap :
size : Size *
fillColor : Color *
?pixelFormat : PixelFormat
(* Defaults:
let _pixelFormat = defaultArg pixelFormat PixelFormat.Format32bppArgb
*)
-> Bitmap
No code example is currently available or this language may not be supported.
- size Size
-
The size of the Bitmap.
- fillColor Color
-
The Color to fill the Bitmap.
- pixelFormat PixelFormat (Optional)
-
The format of the color data for each pixel in the image.
Bitmap
The resulting
Bitmap image.
This is a code example.
No code example is currently available or this language may not be supported.
Dim bmp As Bitmap = CreateSolidcolorBitmap(New Size(256, 256), Color.Teal, PixelFormat.Format32bppArgb)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.