Exemplo n.º 1
0
void ClockScreen::draw(Magick::Image &canvas, float elapsed) {
    auto now = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
    auto time = localtime(&now);
    char buffer[80];

    strftime(buffer, 80, "%I\n%M", time);

    canvas.textGravity(Magick::GravityType::CenterGravity);

    canvas.draw(Magick::DrawableText(0, 0, std::string(buffer)));
}
Exemplo n.º 2
0
void Magick::drawImage::operator()( Magick::Image &image_ ) const
{
  image_.draw( _drawableList );
}