コード例 #1
0
ファイル: ucg.c プロジェクト: Dxploto/nodemcu-firmware
// Lua: ucg.undoScale( self )
static int lucg_undoScale( lua_State *L )
{
    lucg_userdata_t *lud;

    if ((lud = get_lud( L )) == NULL)
        return 0;

    ucg_UndoScale( LUCG );

    return 0;
}
コード例 #2
0
ファイル: main.c プロジェクト: gnkarn/ucglib
void set_scale2x2(ucg_t *ucg)
{
    prepare_picture(ucg);

    ucg_SetFont(ucg, ucg_font_ncenB18_tf);
    ucg_SetFontPosBaseline(ucg);
    //ucg_SetColor(ucg, 0, 0, 0, 255);		/* draw blue "baseline" */
    //ucg_DrawHLine(ucg, 45+ox, 30, ucg_GetStrWidth(ucg, "Ucg"));
    ucg_SetColor(ucg, 0, 255, 255, 255);		/* draw white "Ucg" */
    ucg_SetScale2x2(ucg);
    ucg_DrawString(ucg, 20+ox, 20, 0, "Ucg");
    ucg_UndoScale(ucg);
    pos(ucg, 40+ox, 40, 0);

    save_picture(ucg, "set_scale2x2");
}