private bool Equals(TitleTextureKey other) { return(string.Equals(str文字, other.str文字) && cPrivateFastFont.Equals(other.cPrivateFastFont) && forecolor.Equals(other.forecolor) && backcolor.Equals(other.backcolor)); }
private CTexture GenerateTexture(TitleTextureKey title) { using (var bmp = new Bitmap(title.cPrivateFastFont.DrawPrivateFont( title.str文字, title.forecolor, title.backcolor))) { CTexture tx文字テクスチャ = TJAPlayer3.tテクスチャの生成(bmp, false); return(tx文字テクスチャ); } }
private CTexture GenerateTitleTexture(TitleTextureKey titleTextureKey) { using (var bmp = new Bitmap(titleTextureKey.cPrivateFastFont.DrawPrivateFont( titleTextureKey.str文字, titleTextureKey.forecolor, titleTextureKey.backcolor, true))) { CTexture tx文字テクスチャ = TJAPlayer3.tテクスチャの生成(bmp, false); if (tx文字テクスチャ.szテクスチャサイズ.Height > titleTextureKey.maxHeight) { tx文字テクスチャ.vc拡大縮小倍率.Y = (float)(((double)titleTextureKey.maxHeight) / tx文字テクスチャ.szテクスチャサイズ.Height); } return(tx文字テクスチャ); } }