| 2190 |
var g = Graphics.FromImage( bmpDummy ); |
var g = Graphics.FromImage( bmpDummy ); |
| 2191 |
g.PageUnit = GraphicsUnit.Pixel; |
g.PageUnit = GraphicsUnit.Pixel; |
| 2192 |
sz曲名 = g.MeasureString( str文字, this.ft曲リスト用フォント); |
sz曲名 = g.MeasureString( str文字, this.ft曲リスト用フォント); |
| 2193 |
|
g.Dispose(); |
| 2194 |
//this.stバー情報[ nバー番号 ].nタイトル名テクスチャの長さdot = (int)g.MeasureString(str文字, this.ft曲リスト用フォント).Width; |
//this.stバー情報[ nバー番号 ].nタイトル名テクスチャの長さdot = (int)g.MeasureString(str文字, this.ft曲リスト用フォント).Width; |
| 2195 |
} |
} |
| 2196 |
//----------------- |
//----------------- |
| 2257 |
strPassAfter = ""; |
strPassAfter = ""; |
| 2258 |
|
|
| 2259 |
} |
} |
| 2260 |
string strPath = (strPassAfter + "TitleTexture.png"); |
string strPath = ( strPassAfter + "TitleTexture.png" ); |
| 2261 |
if (File.Exists((strPath))) |
if( File.Exists( ( strPath ) ) ) |
| 2262 |
{ |
{ |
| 2263 |
imgCustomSongNameTexture = Image.FromFile(strPath); |
imgCustomSongNameTexture = Image.FromFile( strPath ); |
| 2264 |
graphics.DrawImage(imgCustomSongNameTexture, 4, -1, 223, 33); |
graphics.DrawImage( imgCustomSongNameTexture, 4, -1, 223, 33 ); |
| 2265 |
bFoundTitleTexture = true; |
bFoundTitleTexture = true; |
| 2266 |
} |
} |
| 2267 |
if (File.Exists((strPassAfter + "ArtistTexture.png"))) |
if( File.Exists( ( strPassAfter + "ArtistTexture.png" ) ) ) |
| 2268 |
{ |
{ |
| 2269 |
imgCuttomArtistNameTexture = Image.FromFile(strPassAfter + "ArtistTexture.png"); |
imgCuttomArtistNameTexture = Image.FromFile( strPassAfter + "ArtistTexture.png" ); |
| 2270 |
graphics.DrawImage(imgCuttomArtistNameTexture, 0, 252, 223, 26); |
graphics.DrawImage(imgCuttomArtistNameTexture, 0, 252, 223, 26); |
| 2271 |
bFoundArtistTexture = true; |
bFoundArtistTexture = true; |
| 2272 |
} |
} |
| 2281 |
sz曲名 = g.MeasureString( str曲名, this.ft曲リスト用フォント ); |
sz曲名 = g.MeasureString( str曲名, this.ft曲リスト用フォント ); |
| 2282 |
szアーティスト名 = g.MeasureString( strアーティスト名, this.ft曲リスト用フォント ); |
szアーティスト名 = g.MeasureString( strアーティスト名, this.ft曲リスト用フォント ); |
| 2283 |
this.stバー情報[ nバー番号 ].nタイトル名テクスチャの長さdot = (int) g.MeasureString( strアーティスト名, new Font( CDTXMania.ConfigIni.str選曲リストフォント, 16 ) ).Width; |
this.stバー情報[ nバー番号 ].nタイトル名テクスチャの長さdot = (int) g.MeasureString( strアーティスト名, new Font( CDTXMania.ConfigIni.str選曲リストフォント, 16 ) ).Width; |
| 2284 |
|
g.Dispose(); |
| 2285 |
} |
} |
| 2286 |
//----------------- |
//----------------- |
| 2287 |
#endregion |
#endregion |
| 2309 |
CDTXMania.t安全にDisposeする( ref this.stバー情報[ nバー番号 ].txパネル ); |
CDTXMania.t安全にDisposeする( ref this.stバー情報[ nバー番号 ].txパネル ); |
| 2310 |
|
|
| 2311 |
this.stバー情報[ nバー番号 ].txパネル = new CTexture( CDTXMania.app.Device, bSongPanel, CDTXMania.TextureFormat, false ); |
this.stバー情報[ nバー番号 ].txパネル = new CTexture( CDTXMania.app.Device, bSongPanel, CDTXMania.TextureFormat, false ); |
|
} |
|
| 2312 |
|
|
| 2313 |
|
bmp.Dispose(); |
| 2314 |
|
g.Dispose(); |
| 2315 |
|
} |
| 2316 |
|
|
| 2317 |
|
b4font.Dispose(); |
| 2318 |
|
bSongPanel.Dispose(); |
| 2319 |
|
imgSongPanel.Dispose(); |
| 2320 |
|
graphics.Dispose(); |
| 2321 |
} |
} |
| 2322 |
catch( CTextureCreateFailedException ) |
catch( CTextureCreateFailedException ) |
| 2323 |
{ |
{ |
| 2360 |
strPassAfter = ""; |
strPassAfter = ""; |
| 2361 |
} |
} |
| 2362 |
|
|
| 2363 |
string strPath = (strPassAfter + "TitleTexture.png"); |
string strPath = ( strPassAfter + "TitleTexture.png" ); |
| 2364 |
if (File.Exists((strPath))) |
if( File.Exists( ( strPath ) ) ) |
| 2365 |
{ |
{ |
| 2366 |
imgCustomSongNameTexture = Image.FromFile(strPath); |
imgCustomSongNameTexture = Image.FromFile( strPath ); |
| 2367 |
imgCustomSongNameTexture = this.CreateNegativeImage( imgCustomSongNameTexture ); |
imgCustomSongNameTexture = this.CreateNegativeImage( imgCustomSongNameTexture ); |
| 2368 |
graphicsA.DrawImage(imgCustomSongNameTexture, 6, 1, 180, 25); |
graphicsA.DrawImage( imgCustomSongNameTexture, 6, 1, 180, 25 ); |
| 2369 |
|
imgCustomSongNameTexture.Dispose(); |
| 2370 |
} |
} |
| 2371 |
|
|
| 2372 |
|
|
| 2373 |
//CDTXMania.t安全にDisposeする( ref this.stバー情報[ nバー番号 ].txカスタム曲名テクスチャ ); |
//CDTXMania.t安全にDisposeする( ref this.stバー情報[ nバー番号 ].txカスタム曲名テクスチャ ); |
| 2374 |
//CDTXMania.t安全にDisposeする( ref this.stバー情報[ nバー番号 ].txカスタムアーティスト名テクスチャ ); |
//CDTXMania.t安全にDisposeする( ref this.stバー情報[ nバー番号 ].txカスタムアーティスト名テクスチャ ); |
| 2375 |
CTexture txTex = new CTexture( CDTXMania.app.Device, bCustomSongNameTexture, CDTXMania.TextureFormat, false ); |
CTexture txTex = new CTexture( CDTXMania.app.Device, bCustomSongNameTexture, CDTXMania.TextureFormat, false ); |
| 2376 |
|
|
| 2377 |
|
b4font.Dispose(); |
| 2378 |
|
graphicsA.Dispose(); |
| 2379 |
|
bCustomSongNameTexture.Dispose(); |
| 2380 |
|
|
| 2381 |
return txTex; |
return txTex; |
|
|
|
| 2382 |
} |
} |
| 2383 |
private CTexture tカスタムアーティスト名テクスチャの生成( int nバー番号 ) |
private CTexture tカスタムアーティスト名テクスチャの生成( int nバー番号 ) |
| 2384 |
{ |
{ |