[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static Image Center(
this Image image,
Size size,
GraphicsQualityContainer quality,
Color fillColor
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function Center (
image As Image,
size As Size,
quality As GraphicsQualityContainer,
fillColor As Color
) As Image
Dim image As Image
Dim size As Size
Dim quality As GraphicsQualityContainer
Dim fillColor As Color
Dim returnValue As Image
returnValue = image.Center(size, quality,
fillColor)
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static Image^ Center(
Image^ image,
Size size,
GraphicsQualityContainer^ quality,
Color fillColor
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member Center :
image : Image *
size : Size *
quality : GraphicsQualityContainer *
fillColor : Color -> Image
No code example is currently available or this language may not be supported.
[Missing <param name="image"/> documentation for "M:DevCase.Extensions.ImageExtensions.ImageExtensions.Center(System.Drawing.Image,System.Drawing.Size,DevCase.Core.Media.Graphics.GraphicsQualityContainer,System.Drawing.Color)"]
[Missing <param name="size"/> documentation for "M:DevCase.Extensions.ImageExtensions.ImageExtensions.Center(System.Drawing.Image,System.Drawing.Size,DevCase.Core.Media.Graphics.GraphicsQualityContainer,System.Drawing.Color)"]
No code example is currently available or this language may not be supported.
Dim srcImage As Image = Image.FromFile("C:\Image.jpg")
Dim sz As Size = Me.PictureBox1.ClientSize
Dim quality As New GraphicsQualityContainer()
Dim fillColor As Color = Color.Black
Dim dstImage As Image = Center(srcImage, sz, quality, fillColor)
Me.PictureBox1.BackgroundImageLayout = ImageLayout.None
Me.PictureBox1.BackgroundImage = dstImage
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.