36class EXPCL_PANDA_PNMIMAGE PNMBrush :
public ReferenceCount {
38 INLINE PNMBrush(
float xc,
float yc);
50 static PT(PNMBrush) make_transparent();
51 static PT(PNMBrush) make_pixel(
const LColorf &color, BrushEffect effect = BE_blend);
52 static PT(PNMBrush) make_spot(
const LColorf &color,
float radius,
bool fuzzy,
53 BrushEffect effect = BE_blend);
54 static PT(PNMBrush) make_image(
const PNMImage &image,
float xc,
float yc,
55 BrushEffect effect = BE_blend);
58 INLINE
float get_xc()
const;
59 INLINE
float get_yc()
const;
61 virtual void draw(
PNMImage &image,
int x,
int y,
float pixel_scale)=0;
62 virtual void fill(
PNMImage &image,
int xfrom,
int xto,
int y,
float get_xc() const
Returns the coordinates of the brush's center pixel.
float get_yc() const
Returns the coordinates of the brush's center pixel.
The name of this class derives from the fact that we originally implemented it as a layer on top of t...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.