2#ifndef _aspose_drawing_drawing2d_hatch_brush_h_
3#define _aspose_drawing_drawing2d_hatch_brush_h_
6#include "drawing/bitmap.h"
7#include "drawing/brush.h"
8#include "drawing/color.h"
9#include "drawing/drawing2d/hatch_style.h"
10#include "system/exceptions.h"
13ASPOSECPP_3RD_PARTY_CLASS(SkPaint);
15ASPOSECPP_3RD_PARTY_CLASS(SkBitmap);
17namespace System {
namespace Drawing {
namespace Drawing2D {
56 MEMBER_FUNCTION_MAKE_OBJECT(
HatchBrush, CODEPORTING_ARGS(
const HatchBrush& brush), CODEPORTING_ARGS(brush));
68 std::unique_ptr<SkBitmap> m_brush_bitmap;
A base class for classes that represent fillers used to fill the interiors of graphical shapes....
Definition: brush.h:18
Represents a color. This type should be allocated on stack and passed to functions by value or by ref...
Definition: color.h:24
static Color FromArgb(int argb)
Constructs an instance of Color class that reprsents the specfied color.
Represents a rectangular brush with a hatch style, a foreground color, and a background color....
Definition: hatch_brush.h:23
virtual SharedPtr< Brush > Clone() override
Creates an exact copy of the current object.
virtual void Apply(SkPaint &paint, const SharedPtr< Drawing2D::Matrix > &matrix, bool apply_shift) override
Sets the properties of the current brush on the specified SkPaint object.
Color get_BackgroundColor() const
Returns a value that indicates the background color of this brush.
HatchStyle get_HatchStyle() const
Returns a value that indicates the hatch style of this brush.
Color get_ForegroundColor() const
Returns a value that indicates the foreground color of this brush.
HatchBrush(HatchStyle hatch_style, Color fore_color, Color back_color=Color::FromArgb(0xFF000000))
Constructs a new instance of HatchBrush class that represents a brush with the specified hatch style,...
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
HatchStyle
Specifies patterns of HatchBrush brush.
Definition: hatch_style.h:9
Definition: db_command.h:9