Symbian绘图库 Cairo for Symbian OS

码农软件 · 软件分类 · 手机开发包 · 2019-05-07 12:12:38

软件介绍

Cairo for Symbian OS 是绘图库 Cairo 在 Symbian 操作系统上的移植版本。

示例代码:

// CMyAppView derives from CCoeControl
//
void CMyAppView::ConstrucL(const TRect& aRect)
    {
    CreateWindowL();
    SetRect(aRect);
    ActivateL();

    iSurface = cairo_symbian_surface_create(&Window());
    iContext = cairo_create(iSurface);
    }

// implement CCoeControl::Draw method
//
void CMyAppView::Draw(const TRect&) const
    {
    // start drawing using Cairo here
    // please note that mixing Cairo and native rendering i.e. using CWindowGc API
    // is not supported and will produce undefined result
    ...
    cairo_t* cr = Context(); // shortcut to iContext
    cairo_set_source_rgb(cr, 1, 1, 1);
    cairo_paint(cr);
    ...
    }

// cleanup
//
CMyAppView::~CMyAppView()
    {
    ...
    cairo_destroy(iContext);
    cairo_surface_destroy(iSurface);
    }

本文地址:https://codercto.com/soft/d/5213.html

理想主义者

理想主义者

[美] 贾斯汀·彼得斯 / 程静、柳筠 / 重庆出版社 / 2018-5-15 / 49.80元

2013年1月11日,年仅26岁的黑客亚伦·斯沃茨自杀身亡,此事在美国引起轩然大波。这不仅是因为在互联网领域,斯沃茨是一个可以与比尔·盖茨、马克·扎克伯格、理查德·斯托曼等齐名的人,更是因为此事揭露了传统世界与互联网世界的规则冲突。 在互联网思维下,信息是明码标价的商品。各种利益方用技术竖起了一道道藩篱,将支付不起费用但渴望用知识改变命运的人隔绝在外。于是,一大批希望改变这种模式的“理想主义......一起来看看 《理想主义者》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具