예제 #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)));
}
예제 #2
0
파일: STL.cpp 프로젝트: 0xPr0xy/ImageMagick
void Magick::drawImage::operator()( Magick::Image &image_ ) const
{
  image_.draw( _drawableList );
}