Method AsImageWithBorder
AsImageWithBorder(SizeD, double, Color?)
Creates Image of the specified size
filled with this color.
public Image AsImageWithBorder(SizeD size, double scaleFactor, Color? borderColor = null)
Parameters
sizeSizeDSize of the created image in dips.
scaleFactordoubleScaling factor used to convert dips to/from pixels.
borderColorColorBorder color. Optional. If not specified, default border color is used.