class::sgfx::Vector

class sgfx::Vector
  : public api::SgfxWorkObject

The Vector class can be used to draw scalable graphics on bitmaps.

Summary

static void draw(

Bitmap & bitmap,
VectorPath & path,
const VectorMap & map
)

static Region find_active_region(

const Bitmap & bitmap
)

static sg_vector_path_description_t get_path_close()

static sg_vector_path_description_t get_path_cubic_bezier(

const Point & control0,
const Point & control1,
const Point & point
)

static sg_vector_path_description_t get_path_line(

const Point & p
)

static sg_vector_path_description_t get_path_move(

const Point & p
)

static sg_vector_path_description_t get_path_pour(

const Point & p
)

static sg_vector_path_description_t get_path_quadratic_bezier(

const Point & control,
const Point & point
)

static sg_int_t max()

static sg_int_t min()

Members

static void draw(

Bitmap & bitmap,
VectorPath & path,
const VectorMap & map
)

Draw the icon using the specified map

Parameters

  • bitmap The target bitmap

  • icon The icon to draw

  • map The map describing how the icon will be mapped to the bitmap

  • bounds A pointer to the bounds if needed (otherwise null)


static Region find_active_region(

const Bitmap & bitmap
)


static sg_vector_path_description_t get_path_close()

static sg_vector_path_description_t get_path_cubic_bezier(

const Point & control0,
const Point & control1,
const Point & point
)


static sg_vector_path_description_t get_path_line(

const Point & p
)


static sg_vector_path_description_t get_path_move(

const Point & p
)


static sg_vector_path_description_t get_path_pour(

const Point & p
)


static sg_vector_path_description_t get_path_quadratic_bezier(

const Point & control,
const Point & point
)


static sg_int_t max()

Maximum x,y value in abstract graphic space


static sg_int_t min()

Minimum x,y value in abstract graphic space


X

Thanks for Coming!

Subscribe to news and updates