25 #ifndef _BOARD_IMAGE_H_
26 #define _BOARD_IMAGE_H_
56 Image(
const char * filename,
57 double left,
double top,
double width,
double height = 0.0,
69 Image(
const char * filename,
const Rect & rect,
int depth = -1 );
81 const std::string &
name()
const;
210 void flushFIG( std::ostream & stream,
212 std::map<Color,int> & colormap )
const;
221 void flushSVG( std::ostream & stream,
235 static const std::string _name;
240 std::string _filename;
Abstract structure for a 2D shape.
Definition: Shapes.h:62
void flushFIG(std::ostream &stream, const TransformFIG &transform, std::map< Color, int > &colormap) const
Definition: Image.cpp:214
Shape & scale(double sx, double sy)
Definition: Image.cpp:134
Rect boundingBox(LineWidthFlag lineWidthFlag) const
Definition: Image.cpp:163
Image translated(double dx, double dy) const
Definition: Image.cpp:128
Struct representing a 2D point.
Definition: Point.h:39
void flushSVG(std::ostream &stream, const TransformSVG &transform) const
Definition: Image.cpp:232
Shape & rotate(double angle, const Point ¢er)
Definition: Image.cpp:89
Structure for a bitmap image shape.
Definition: Image.h:39
void scaleAll(double s)
Definition: Image.cpp:169
void flushTikZ(std::ostream &stream, const TransformTikZ &transform) const
Definition: Image.cpp:258
Image * clone() const
Definition: Image.cpp:83
Image scaled(double sx, double sy)
Definition: Image.cpp:157
A rectangle.
Definition: Shapes.h:1080
Image(const char *filename, double left, double top, double width, double height=0.0, int depth=-1)
Definition: Image.cpp:43
@copyright This source code is part of the Board project, a C++ library whose purpose is to allow sim...
~Image()
Definition: Image.h:243
Shape & translate(double dx, double dy)
Definition: Image.cpp:119
const std::string & name() const
Definition: Image.cpp:77
Image rotated(double angle) const
Definition: Image.cpp:108
virtual Point center(LineWidthFlag lineWidthFlag=IgnoreLineWidth) const
Definition: Shapes.cpp:101
Struct representing a rectangle on the plane.
Definition: Rect.h:38
void flushPostscript(std::ostream &stream, const TransformEPS &transform) const
Definition: Image.cpp:177