Grasshopper API
GH_MemoryBitmapPadBitmap Method |
Add padding edges around a bitmap.
Namespace: Grasshopper.Kernel
Assembly: Grasshopper (in Grasshopper.dll)

public static Bitmap PadBitmap( Image bmp, Padding padding, Color padding_color )
Public Shared Function PadBitmap ( bmp As Image, padding As Padding, padding_color As Color ) As Bitmap
Parameters
- bmp
- Type: System.DrawingImage
Source bitmap. - padding
- Type: System.Windows.FormsPadding
Padding to apply. - padding_color
- Type: System.DrawingColor
Color of padded edges.
Return Value
Type: BitmapA new bitmap with padded edges and the same PixelFormat as the original bitmap.
