setStrokeBitmapShader method
void
setStrokeBitmapShader(
- Bitmap bitmap
inherited
Implementation
void setStrokeBitmapShader(Bitmap bitmap) {
// make sure the color is not transparent
if (isStrokeTransparent()) setStrokeColor(Colors.black);
_stroke.setBitmapShader(bitmap);
_strokes.forEach((key, value) {
// make sure the color is not transparent
if (value.isTransparent()) value.setColor(Colors.black);
value.setBitmapShader(bitmap);
});
//strokePaint.setBitmapShaderShift(way.getUpperLeft().getOrigin());
//bitmap.incrementRefCount();
}