Interface IGraphicsEx
- Namespace
- GameCanvas
- Assembly
- GameCanvas.dll
public interface IGraphicsEx : IGraphics
- Inherited Members
Properties
CanvasAABB
キャンバスのAABB
GcAABB CanvasAABB { get; }
Property Value
CanvasCenter
キャンバスの中心座標
float2 CanvasCenter { get; }
Property Value
- float2
CanvasHeight
キャンバスの縦幅
int CanvasHeight { get; }
Property Value
CanvasResolution
キャンバスの解像度とリフレッシュレート
GcResolution CanvasResolution { get; }
Property Value
CanvasWidth
キャンバスの横幅
int CanvasWidth { get; }
Property Value
ColorAqua
水色
Color ColorAqua { get; }
Property Value
- Color
ColorBlack
黒色
Color ColorBlack { get; }
Property Value
- Color
ColorBlue
青色
Color ColorBlue { get; }
Property Value
- Color
ColorCyan
シアン
Color ColorCyan { get; }
Property Value
- Color
ColorGray
灰色
Color ColorGray { get; }
Property Value
- Color
ColorGreen
緑色
Color ColorGreen { get; }
Property Value
- Color
ColorPurple
紫色
Color ColorPurple { get; }
Property Value
- Color
ColorRed
赤色
Color ColorRed { get; }
Property Value
- Color
ColorWhite
白色
Color ColorWhite { get; }
Property Value
- Color
ColorYellow
黄色
Color ColorYellow { get; }
Property Value
- Color
DeviceScreenHeight
端末スクリーンの縦幅
int DeviceScreenHeight { get; }
Property Value
DeviceScreenWidth
端末スクリーンの横幅
int DeviceScreenWidth { get; }
Property Value
Methods
ChangeBorderColor(in float, in float, in float)
帯の色を変更します
void ChangeBorderColor(in float r, in float g, in float b)
Parameters
ChangeCanvasSize(in int, in int)
キャンバス解像度を指定します
void ChangeCanvasSize(in int width, in int height)
Parameters
Remarks
- 初期値は 720x1280 です
- ディスプレイ解像度と縦横比が異なる場合は、上下もしくは左右に帯がつきます
DrawCircle(in float, in float, in float)
円を線で描画します
void DrawCircle(in float x, in float y, in float radius)
Parameters
DrawCircle(in float2, in float)
円を線で描画します
void DrawCircle(in float2 position, in float radius)
Parameters
positionfloat2中心の座標
radiusfloat半径
DrawImage(in GcImage, in float, in float, float)
画像を描画します
void DrawImage(in GcImage image, in float x, in float y, float degree = 0)
Parameters
DrawImage(in GcImage, in float, in float, in float, in float, float)
画像を拡縮して描画します
void DrawImage(in GcImage image, in float x, in float y, in float width, in float height, float degree = 0)
Parameters
imageGcImage描画する画像
xfloatX座標
yfloatY座標
widthfloat横幅。画像の横幅がこれになるように拡縮される
heightfloat縦幅。画像の縦幅がこれになるように拡縮される
degreefloat回転(度数法)
DrawLine(in float, in float, in float, in float)
線を描画します
void DrawLine(in float x0, in float y0, in float x1, in float y1)
Parameters
DrawLine(in float2, in float2)
線を描画します
void DrawLine(in float2 begin, in float2 end)
Parameters
beginfloat2始点
endfloat2終点
DrawRect(in float, in float, in float, in float, float)
矩形を線で描画します
void DrawRect(in float x, in float y, in float width, in float height, float degree = 0)
Parameters
DrawRect(in float2, in float2, float)
矩形を線で描画します
void DrawRect(in float2 position, in float2 size, float degree = 0)
Parameters
positionfloat2位置
sizefloat2大きさ
degreefloat回転(度数法)
DrawRoundedRect(in float, in float, in float, in float, float)
角丸矩形を線で描画します
void DrawRoundedRect(in float x, in float y, in float width, in float height, float degree = 0)
Parameters
DrawRoundedRect(in float, in float, in float, in float, float, float)
角丸矩形を線で描画します
void DrawRoundedRect(in float x, in float y, in float width, in float height, float cornerRadius, float degree = 0)
Parameters
xfloatX座標
yfloatY座標
widthfloat横幅
heightfloat縦幅
cornerRadiusfloat角丸の半径
degreefloat回転(度数法)
DrawRoundedRect(in float2, in float2, float)
角丸矩形を線で描画します
void DrawRoundedRect(in float2 position, in float2 size, float degree = 0)
Parameters
positionfloat2位置
sizefloat2大きさ
degreefloat回転(度数法)
DrawRoundedRect(in float2, in float2, float, float)
角丸矩形を線で描画します
void DrawRoundedRect(in float2 position, in float2 size, float cornerRadius, float degree = 0)
Parameters
DrawString(in string, in float, in float, float)
文字列を描画します
void DrawString(in string str, in float x, in float y, float degree = 0)
Parameters
DrawString(in string, in float, in float, in float, in float, float)
文字列を拡縮して描画します
void DrawString(in string str, in float x, in float y, in float width, in float height, float degree = 0)
Parameters
strstring描画する文字列
xfloatX座標
yfloatY座標
widthfloat横幅。文字列の横幅がこれになるように拡縮される
heightfloat縦幅。文字列の縦幅がこれになるように拡縮される
degreefloat回転(度数法)
DrawTexture(in Texture, in float, in float, in float, in float, float)
テクスチャーを拡縮して描画します
void DrawTexture(in Texture texture, in float x, in float y, in float width, in float height, float degree = 0)
Parameters
textureTexture描画するテクスチャー
xfloatX座標
yfloatY座標
widthfloat横幅。画像の横幅がこれになるように拡縮される
heightfloat縦幅。画像の縦幅がこれになるように拡縮される
degreefloat回転(度数法)
FillCircle(in float, in float, in float)
円を塗りで描画します
void FillCircle(in float x, in float y, in float radius)
Parameters
FillCircle(in float2, in float)
円を塗りで描画します
void FillCircle(in float2 position, in float radius)
Parameters
positionfloat2中心の座標
radiusfloat半径
FillRect(in float, in float, in float, in float, float)
矩形を塗りで描画します
void FillRect(in float x, in float y, in float width, in float height, float degree = 0)
Parameters
FillRect(in float2, in float2, float)
矩形を塗りで描画します
void FillRect(in float2 position, in float2 size, float degree = 0)
Parameters
positionfloat2位置
sizefloat2大きさ
degreefloat回転(度数法)
FillRoundedRect(in float, in float, in float, in float, float)
角丸矩形を塗りで描画します
void FillRoundedRect(in float x, in float y, in float width, in float height, float degree = 0)
Parameters
FillRoundedRect(in float, in float, in float, in float, float, float)
角丸矩形を塗りで描画します
void FillRoundedRect(in float x, in float y, in float width, in float height, float cornerRadius, float degree = 0)
Parameters
xfloatX座標
yfloatY座標
widthfloat横幅
heightfloat縦幅
cornerRadiusfloat角丸の半径
degreefloat回転(度数法)
FillRoundedRect(in float2, in float2, float)
角丸矩形を塗りで描画します
void FillRoundedRect(in float2 position, in float2 size, float degree = 0)
Parameters
positionfloat2位置
sizefloat2大きさ
degreefloat回転(度数法)
FillRoundedRect(in float2, in float2, float, float)
角丸矩形を塗りで描画します
void FillRoundedRect(in float2 position, in float2 size, float cornerRadius, float degree = 0)
Parameters
GetImageHeight(in GcImage)
画像の縦幅を取得します
int GetImageHeight(in GcImage image)
Parameters
imageGcImage画像
Returns
- int
縦幅
GetImageSize(in GcImage)
画像のサイズを取得します
int2 GetImageSize(in GcImage image)
Parameters
imageGcImage画像
Returns
- int2
サイズ
GetImageWidth(in GcImage)
画像の横幅を取得します
int GetImageWidth(in GcImage image)
Parameters
imageGcImage画像
Returns
- int
横幅
RotateCoordinate(in float, in float, in float)
座標系(変換行列)を回転させます
void RotateCoordinate(in float degree, in float originX, in float originY)
Parameters
ScaleCoordinate(in float, in float)
座標系(変換行列)を拡縮させます
void ScaleCoordinate(in float sx, in float sy)
Parameters
SetBackgroundColor(in float, in float, in float)
背景色を指定します
void SetBackgroundColor(in float r, in float g, in float b)
Parameters
SetBackgroundColor(in Color)
背景色を指定します
void SetBackgroundColor(in Color color)
Parameters
colorColor背景色
SetColor(in byte, in byte, in byte, byte)
描画色を指定します
void SetColor(in byte r, in byte g, in byte b, byte a = 255)
Parameters
SetColor(in float, in float, in float, float)
描画色を指定します
void SetColor(in float r, in float g, in float b, float a = 1)
Parameters
SetColor(in Color)
描画色を指定します
void SetColor(in Color color)
Parameters
colorColor描画色
SetColor(in Color, in float)
描画色を指定します
void SetColor(in Color color, in float alpha)
Parameters
colorColor描画色
alphafloat描画色の不透明度
SetCoordinate(in float2x3)
座標系(変換行列)を指定します
void SetCoordinate(in float2x3 matrix)
Parameters
matrixfloat2x3座標系(変換行列)
SetFont(in GcFont)
フォントを指定します
void SetFont(in GcFont font)
Parameters
fontGcFontフォント
SetFontSize(in int)
フォントサイズを指定します
void SetFontSize(in int fontSize)
Parameters
fontSizeintフォントサイズ
SetLineCap(in GcLineCap)
描線の端点の形状を指定します
void SetLineCap(in GcLineCap lineCap)
Parameters
lineCapGcLineCap描線の端点の形状
SetLineWidth(in float)
描線の太さを指定します
void SetLineWidth(in float lineWidth)
Parameters
lineWidthfloat描線の太さ
SetRectAnchor(in GcAnchor)
矩形や画像のアンカー位置を指定します
void SetRectAnchor(in GcAnchor anchor)
Parameters
anchorGcAnchorアンカー位置
SetStringAnchor(in GcAnchor)
文字列のアンカー位置を指定します
void SetStringAnchor(in GcAnchor anchor)
Parameters
anchorGcAnchorアンカー位置
SetStyle(in GcStyle)
スタイルを指定します
void SetStyle(in GcStyle style)
Parameters
styleGcStyle
TranslateCoordinate(in float, in float)
座標系(変換行列)を平行移動させます
void TranslateCoordinate(in float tx, in float ty)