• DirectFB 之 FillRectangle 绘制矩形


    1. 函数原型解析

    函数声明:
    DFBResult FillRectangle ( 
       IDirectFBSurface    *  thiz,  
       int     x,  
       int     y,  
       int     w,  
       int     h  
    )
           在平面上画了一个黑色(DirectFB系统默认颜色)的指定大小的矩形,左上定点坐标为(x,y),宽度为w,高度为h。 

    参数介绍:
        thiz:自身指针变量,类似this指针的变量;属于DirectFB的招牌写法。
        (x, y):表示DFBRctangle的左上角的坐标位置
        宽度为w,高度为h。 
     

    2. 实例    


    primary_surface->FillRectangle(primary_surface, 0, 0,
                                screen_width, screen_height);


    3. 备注    

            FillRectangle     :        填充矩形
            DrawRectangle     :        画矩形
            DrawLine          :        画线
            FillTriangle      :        填充三角形
            Blit              :        位块传送(内存拷贝/移动?)
            Blit2             :        位块传送2(支持源坐标)
            StretchBlit       :        位块传送并拉伸
            TextureTriangles  :        ? 
  • 相关阅读:
    lua for循环
    多面体的欧拉公式
    流形(Manifold)初步
    Laplace算子和Laplacian矩阵
    多重网格方法(Multigridmethod)
    多重网格方法
    谷歌浏览器兼容IE插件
    伽辽金法
    共轭梯度法
    有限元分析
  • 原文地址:https://www.cnblogs.com/youngerchina/p/5624506.html
Copyright © 2020-2023  润新知