IDrawingFactory.CreateTextureBrush

CreateTextureBrush(byte[], SpreadMode, float, IMatrix)

Creates a texture brush with the specified parameters.

public ITextureBrush CreateTextureBrush(byte[] imageBytes, SpreadMode spreadMode, float opacity, 
    IMatrix transformationMatrix)
ParameterTypeDescription
imageBytesByte[]The byte array containing the image data.
spreadModeSpreadModeThe spread mode for the brush. See SpreadMode.
opacitySingleThe opacity of the brush.
transformationMatrixIMatrixThe transformation matrix for the brush.

Return Value

The created ITextureBrush.

See Also


CreateTextureBrush(PointF, IMatrix, IInterpolationColor[], RectangleF, float, RectangleF)

Creates a texture brush with the specified parameters for an elliptical shape.

public ITextureBrush CreateTextureBrush(PointF centerPoint, IMatrix transformation, 
    IInterpolationColor[] interpolationColors, RectangleF bounds, float opacity, 
    RectangleF elipseRect)
ParameterTypeDescription
centerPointPointFThe center point of the ellipse.
transformationIMatrixThe transformation matrix for the brush. See IMatrix.
interpolationColorsIInterpolationColor[]The interpolation colors for the brush. See IInterpolationColor.
boundsRectangleFThe bounds of the brush.
opacitySingleThe opacity of the brush.
elipseRectRectangleFThe rectangle defining the elliptical shape.

Return Value

The created ITextureBrush.

See Also