zoukankan      html  css  js  c++  java
  • 8.1 图像API

    8.1 图像API

     

    Routine

    Description

    Drawing related functions

    GUI_AddRect()

    调整矩形框的大小

    GUI_GetClientRect()

    Returns the current available drawing area.

    GUI_GetDrawMode()

    Returns the current drawing mode.

    GUI_GetPenSize()

    Returns the current pen size in  pixels.

    GUI_GetPixelIndex()

    Returns the color index of a given position.

    GUI_SetClipRect()

    Sets the rectangle used for clipping.

    GUI_SetDrawMode()

    Sets the drawing mode.

    GUI_SetPenSize()

    Sets the pen size in pixels.

    Basic drawing routines

    GUI_Clear()

    Fills the display / the active window with the background color.

    GUI_ClearRect()

    Fills a rectangular area with the background color.

    GUI_CopyRect()

    Copies a rectangle area on the display

    GUI_DrawGradientH()

    Draws a rectangle filled with a horizontal color gradient.

    GUI_DrawGradientV()

    Draws a rectangle filled with a vertical color gra- dient.

    GUI_DrawGradientRoundedH()

    Draws a rectangle with rounded corners filled with a horizontal color gradient.

    GUI_DrawGradientRoundedV()

    Draws a rectangle with rounded corners filled with a vertical color gradient.

    GUI_DrawPixel()

    Draws a single pixel.

    GUI_DrawPoint()

    Draws a point.

    GUI_DrawRect()

    Draws a rectangle.

    GUI_DrawRectEx()

    Draws a rectangle.

    GUI_DrawRoundedFrame()

    Draws a frame with rounded corners.

    GUI_DrawRoundedRect()

    Draws a rectangle with rounded corners.

    GUI_FillRect()

    Draws a filled rectangle.

    GUI_FillRectEx()

    Draws a filled rectangle.

    GUI_FillRoundedRect()

    Draws a filled rectangle with rounded corners.

    GUI_InvertRect()

    Invert a rectangular area.

    Alpha blending

    GUI_EnableAlpha()

    Enables/disables automatic alpha blending

    GUI_PreserveTrans()

    Makes sure that alpha channel remains after drawing operations.

    GUI_RestoreUserAlpha()

    Restores the previous state of user alpha blend- ing

    GUI_SetAlpha()

    Sets the current alpha blending value. (Obso- lete)

    GUI_SetUserAlpha()

    Sets an additional value which is used to calcu- late the actual alpha blending value to be  used.

    Drawing bitmaps

    GUI_DrawBitmap()

    Draws a bitmap.

    GUI_DrawBitmapEx()

    Draws a scaled bitmap.

    GUI_DrawBitmapMag()

    Draws a magnified bitmap.

     

    GUI_SetAlphaMask8888()

    Could be used for setting an additional AND and OR mask to be used for drawing the pixels of 32bpp bitmaps.

     

    GUI_SetClipRect()

        GUI_RECT Rect = { 0, 0, 100, 200 }, Rect2;
        GUI_AddRect(&Rect2, &Rect, -20);
    
    //    GUI_SetClipRect(&Rect2);    // 切掉,不会影响该方框。
    
        GUI_FillRectEx(&Rect);
    
        GUI_Delay(1000);
    //    GUI_SetClipRect(NULL);
        GUI_SetColor(GUI_GREEN);
        GUI_FillRectEx(&Rect);
      

       

        GUI_SetClipRect(&Rect2);    // 切掉,不会影响该方框。
    
        GUI_FillRectEx(&Rect);
    
        GUI_Delay(5000);
    //    GUI_SetClipRect(NULL);
        GUI_SetColor(GUI_GREEN);
        GUI_FillRectEx(&Rect);
      
    
    

      

        GUI_SetClipRect(&Rect2);    // 切掉,不会影响该方框。
    
        GUI_FillRectEx(&Rect);
    
        GUI_Delay(5000);
        GUI_SetClipRect(NULL);
        GUI_SetColor(GUI_GREEN);
        GUI_FillRectEx(&Rect);
      
    
    
  • 相关阅读:
    error 65: access violation at 0x40021000 : no 'read' permission
    我的防Q+
    jquery judge element exist
    eclipse html 打开方式
    Java用JSoup组件提取asp.net webform开发网页的viewstate相关相关参数
    Chrome 启动参数列表
    Fixed the bug:while running alert/confirm in javascript the chrome freezes
    the confilict between validation and readonly in jquery
    Difference between prop and attr in different version of jquery
    Tomcat启动错误一例org.apache.catalina.core.StandardContext resources Start Error starting static Resources
  • 原文地址:https://www.cnblogs.com/qiyuexin/p/10421420.html
Copyright © 2011-2022 走看看