Helper method to convert
AnnBrush to an android.graphics.Paint object with alpha, opacity and bounding rectangle values.
public static Paint ToPaint(
AnnBrush ,
int ,
double ,
LeadRectD
)
'Declaration
Public Overloads Shared Function ToPaint( _
ByVal As AnnBrush, _
ByVal As Integer, _
ByVal As Double, _
ByVal As LeadRectD _
) As Paint
'Usage
Dim brush As AnnBrush
Dim alpha As Integer
Dim opacity As Double
Dim brushBounds As LeadRectD
Dim value As Paint
value = AnnAndroidRenderingEngine.ToPaint(brush, alpha, opacity, brushBounds)
public static Paint toPaint(AnnBrush brush, int alpha, double opacity, LeadRectD brushBounds)
function Leadtools.Annotations.Rendering.AnnAndroidRenderingEngine_java.ToPaint(AnnBrush,Int32,Double,LeadRectD)(
brush ,
alpha ,
opacity ,
brushBounds
)
Parameters
- brush
- Brush object to convert
- alpha
- Alpha value to use (0 to 255).
- opacity
- Opacity value to use. Values can be from 0 to 1.0.
- brushBounds
- The bounding rectangle of the brush in pixels.
Return Value
An android.graphics.Paint object.