|
GadgetSeed
0.9.6
|
グラフィック関連のコマンド [詳解]
#include "sysconfig.h"#include "gadgetseed.h"#include "shell.h"#include "str.h"#include "timer.h"#include "font.h"#include "console.h"#include "tprintf.h"#include "file.h"#include "memory.h"#include "device/video_ioctl.h"#include "graphics.h"#include "jpegdec.h"
マクロ定義 | |
| #define | BUFSIZE 256 |
関数 | |
| static int | drawmode (int argc, uchar *argv[]) |
| static int | forecolor (int argc, uchar *argv[]) |
| static int | backcolor (int argc, uchar *argv[]) |
| static int | cls (int argc, uchar *argv[]) |
| static int | point (int argc, uchar *argv[]) |
| static int | hline (int argc, uchar *argv[]) |
| static int | vline (int argc, uchar *argv[]) |
| static int | drawrect (int argc, uchar *argv[]) |
| static int | fillrect (int argc, uchar *argv[]) |
| static int | roundrect (int argc, uchar *argv[]) |
| static int | roundfillrect (int argc, uchar *argv[]) |
| static int | cliprect (int argc, uchar *argv[]) |
| static int | drawline (int argc, uchar *argv[]) |
| static int | setfont (int argc, uchar *argv[]) |
| static int | proportional (int argc, uchar *argv[]) |
| static int | drawchar (int argc, uchar *argv[]) |
| static int | drawcode (int argc, uchar *argv[]) |
| static int | drawstr (int argc, uchar *argv[]) |
| static int | fontpreview (int argc, uchar *argv[]) |
| static int | circle (int argc, uchar *argv[]) |
| static int | fcircle (int argc, uchar *argv[]) |
| static int | ellipse (int argc, uchar *argv[]) |
| static int | fellipse (int argc, uchar *argv[]) |
| static int | scrollv (int argc, uchar *argv[]) |
| static int | jpeg (int argc, uchar *argv[]) |
| static int | vertex4_region (int argc, uchar *argv[]) |
| static int | display_frame (int argc, uchar *argv[]) |
| static int | draw_frame (int argc, uchar *argv[]) |
| static int | sector (int argc, uchar *argv[]) |
| static int | enlargedbitmap (int argc, uchar *argv[]) |
グラフィック関連のコマンド
graph コマンドには以下のサブコマンドがあります。
| サブコマンド | 機能 | 詳細 |
|---|---|---|
| drawmode | 描画モードを設定する | com_graph_drawmode |
| forecolor | フォアカラーを設定する | com_graph_forecolor |
| backcolor | バックカラーを設定する | com_graph_backcolor |
| cls | 画面を初期化する | com_graph_cls |
| point | 点を描画する | com_graph_point |
| hline | 水平線を描画する | com_graph_hline |
| vline | 垂直線を描画する | com_graph_vline |
| rect | 矩形を描画する | com_graph_rect |
| fillrect | 塗りつぶした矩形を描画する | com_graph_fillrect |
| roundrect | 角の丸い矩形を描画する | com_graph_roundrect |
| roundfrect | 角の丸い塗りつぶした矩形を描画する | com_graph_roundfillrect |
| cliprect | クリッピング領域を設定する | com_graph_cliprect |
| line | 直線を描画する | com_graph_line |
| setfont | 描画するフォントを設定する | com_graph_setfont |
| proport | フォントの描画モード(固定幅/プロポーショナル)を設定する | com_graph_proportional |
| drawchar | 1文字描画する | com_graph_drawchar |
| charcode | 指定文字コードの文字を描画する | com_graph_charcode |
| drawstr | 文字列を描画する | com_graph_drawstr |
| fontpreview | 指定フォントの半角文字をプレビュー描画する | com_graph_fontpreview |
| circle | 円を描画する | com_graph_circle |
| fillcircle | 塗りつぶした円を描画する | com_graph_fillcircle |
| ellipse | 楕円を描画する | com_graph_ellipse |
| fillellipse | 塗りつぶした楕円を描画する | com_graph_fillellipse |
| scrollv | 縦方向に矩形領域をスクロースする | com_graph_scrollv |
| jpeg | JPEGファイルを描画する | com_graph_jpeg |
| png | com_graph_png | |
| vertex4 | 4頂点ポリゴンを描画する | com_graph_vertex4 |
| dispframe | 表示フレームを設定する | com_graph_dispframe |
| drawframe | 描画フレームを設定する | com_graph_drawframe |
| sector | 扇を描画する | com_graph_sector |
| enlbitmap | 拡大したビットマップテストデータを描画する | com_graph_enlbitmap |
com_graphics.c に定義があります。
|
static |
バックカラーを設定する
com_graphics.c の 151 行目に定義があります。
|
static |
指定文字コードの文字を描画する
com_graphics.c の 565 行目に定義があります。
|
static |
円を描画する
com_graphics.c の 674 行目に定義があります。
|
static |
クリッピング領域を設定する
com_graphics.c の 405 行目に定義があります。
|
static |
画面を初期化する
com_graphics.c の 185 行目に定義があります。
|
static |
表示フレームを設定する
com_graphics.c の 987 行目に定義があります。
|
static |
1文字描画する
com_graphics.c の 540 行目に定義があります。
|
static |
描画フレームを設定する
com_graphics.c の 1011 行目に定義があります。
| const struct st_shell_command com_graph_drawmode |
描画モードを設定する
設定可能なモードは以下
0:標準
1:フォアカラーとバックカラーを逆に描画する
2:フォアカラーのみ描画する
com_graphics.c の 97 行目に定義があります。
|
static |
文字列を描画する
com_graphics.c の 590 行目に定義があります。
|
static |
楕円を描画する
com_graphics.c の 724 行目に定義があります。
|
static |
拡大したビットマップテストデータを描画する
com_graphics.c の 1062 行目に定義があります。
|
static |
塗りつぶした円を描画する
com_graphics.c の 699 行目に定義があります。
|
static |
塗りつぶした楕円を描画する
com_graphics.c の 750 行目に定義があります。
|
static |
塗りつぶした矩形を描画する
com_graphics.c の 305 行目に定義があります。
|
static |
指定フォントの半角文字をプレビュー描画する
com_graphics.c の 620 行目に定義があります。
|
static |
フォアカラーを設定する
com_graphics.c の 122 行目に定義があります。
|
static |
水平線を描画する
com_graphics.c の 222 行目に定義があります。
|
static |
JPEGファイルを描画する
com_graphics.c の 816 行目に定義があります。
|
static |
直線を描画する
com_graphics.c の 441 行目に定義があります。
|
static |
点を描画する
com_graphics.c の 197 行目に定義があります。
|
static |
フォントの描画モード(固定幅/プロポーショナル)を設定する
com_graphics.c の 515 行目に定義があります。
|
static |
矩形を描画する
com_graphics.c の 272 行目に定義があります。
|
static |
角の丸い塗りつぶした矩形を描画する
com_graphics.c の 371 行目に定義があります。
|
static |
角の丸い矩形を描画する
com_graphics.c の 337 行目に定義があります。
|
static |
縦方向に矩形領域をスクロースする
com_graphics.c の 776 行目に定義があります。
|
static |
扇を描画する
com_graphics.c の 1035 行目に定義があります。
|
static |
描画するフォントを設定する
com_graphics.c の 476 行目に定義があります。
|
static |
4頂点ポリゴンを描画する
com_graphics.c の 959 行目に定義があります。
|
static |
垂直線を描画する
com_graphics.c の 247 行目に定義があります。
| const struct st_shell_command com_graphics |
グラフィックス描画
com_graphics.c の 1135 行目に定義があります。