同步操作将从 OpenHarmony/docs 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Related Modules:
Description:
Defines pointers to the hardware acceleration driver functions.
InitGfx )(void) |
|
DeinitGfx )(void) |
|
FillRect )(ISurface *surface, IRect *rect, uint32_t color, GfxOpt *opt) |
|
DrawRectangle )(ISurface *surface, Rectangle *rect, uint32_t color, GfxOpt *opt) |
|
DrawCircle )(ISurface *surface, ICircle *circle, GfxOpt *opt) |
Draws a circle with a specified center and radius on the canvas using a given color. |
Blit )(ISurface *srcSurface, IRect *srcRect, ISurface *dstSurface, IRect *dstRect) |
|
Sync )(void) |
int32_t(* GfxFuncs::Blit) ([ISurface](ISurface.md) *srcSurface, [IRect](IRect.md) *srcRect, [ISurface](ISurface.md) *dstSurface, [IRect](IRect.md) *dstRect)
Description:
Blits bitmaps.
During bit blit, color space conversion (CSC), scaling, and rotation can be implemented.
Parameters:
srcSurface | Indicates the pointer to the source bitmap. |
srcRect | Indicates the pointer to the rectangle of the source bitmap. |
dstSurface | Indicates the pointer to the destination bitmap. |
dstRect | Indicates the pointer to the rectangle of the destination bitmap. |
Returns:
Returns 0 if the operation is successful; returns an error code defined in DispErrCode otherwise.
See also:
Blit3
int32_t(* GfxFuncs::DeinitGfx) (void)
Description:
Deinitializes hardware acceleration.
Returns:
Returns 0 if the operation is successful; returns an error code defined in DispErrCode otherwise.
See also:
int32_t(* GfxFuncs::DrawCircle) ([ISurface](ISurface.md) *surface, [ICircle](ICircle.md) *circle, [GfxOpt](GfxOpt.md) *opt)
Description:
Draws a circle with a specified center and radius on the canvas using a given color.
Parameters:
surface | Indicates the pointer to the canvas. |
circle | Indicates the pointer to the circle to draw. |
opt | Indicates the pointer to the hardware acceleration option. |
Returns:
Returns 0 if the operation is successful; returns an error code defined in DispErrCode otherwise.
int32_t(* GfxFuncs::DrawLine) ([ISurface](ISurface.md) *surface, [ILine](ILine.md) *line, [GfxOpt](GfxOpt.md) *opt)
Description:
Draws a straight line with a given color on the canvas.
Parameters:
surface | Indicates the pointer to the canvas. |
line | Indicates the pointer to the line to draw. |
opt | Indicates the pointer to the hardware acceleration option. |
Returns:
Returns 0 if the operation is successful; returns an error code defined in DispErrCode otherwise.
int32_t(* GfxFuncs::DrawRectangle) ([ISurface](ISurface.md) *surface, [Rectangle](Rectangle.md) *rect, uint32_t color, [GfxOpt](GfxOpt.md) *opt)
Description:
Draws a rectangle with a given color on the canvas.
Parameters:
surface | Indicates the pointer to the canvas. |
rect | Indicates the pointer to the rectangle to draw. |
color | Indicates the color to draw. |
opt | Indicates the pointer to the hardware acceleration option. |
Returns:
Returns 0 if the operation is successful; returns an error code defined in DispErrCode otherwise.
See also:
int32_t(* GfxFuncs::FillRect) ([ISurface](ISurface.md) *surface, [IRect](IRect.md) *rect, uint32_t color, [GfxOpt](GfxOpt.md) *opt)
Description:
Fills a rectangle with a given color on the canvas.
Parameters:
surface | Indicates the pointer to the canvas. |
rect | Indicates the pointer to the rectangle to fill. |
color | Indicates the color to fill. |
opt | Indicates the pointer to the hardware acceleration option. |
Returns:
Returns 0 if the operation is successful; returns an error code defined in DispErrCode otherwise.
int32_t(* GfxFuncs::InitGfx) (void)
Description:
Initializes hardware acceleration.
Returns:
Returns 0 if the operation is successful; returns an error code defined in DispErrCode otherwise.
See also:
int32_t(* GfxFuncs::Sync) (void)
Description:
Synchronizes hardware acceleration.
Use this function for hardware acceleration synchronization when hardware acceleration is used to draw and blit bitmaps. This function blocks the process until hardware acceleration is complete.
Parameters:
timeOut | Indicates the timeout duration for hardware acceleration synchronization. The value 0 indicates no timeout, so the process waits until hardware acceleration is complete. |
Returns:
Returns 0 if the operation is successful; returns an error code defined in DispErrCode otherwise.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。