using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Drawing.Text;
namespace bitmap_test {
class Program {
static void Main(string[] args) {
Bitmap bmp = new Bitmap(@"C:\user\lightbox\vs\button.png");
Graphics gra = Graphics.FromImage(bmp);
Font myFont = new Font(
new FontFamily("メイリオ"),
32,
FontStyle.Regular);
SolidBrush myBrush = new SolidBrush(Color.FromArgb(255,255,255));
gra.TextRenderingHint = TextRenderingHint.AntiAliasGridFit;
gra.DrawString( "送信ボタン", myFont, myBrush, 70, 20 );
bmp.Save(@"C:\user\lightbox\vs\button_edit1.png", System.Drawing.Imaging.ImageFormat.Png);
bmp.Dispose();
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SqlServer.Management.Smo;
using Microsoft.SqlServer.Management.Common;
using System.Collections.Specialized;
using Microsoft.SqlServer.Management.Sdk.Sfc;
namespace smo_table_script
{
class Program
{
static void Main(string[] args)
{
Server srv = new Server();
Database db = srv.Databases["lightbox"];
Scripter scrp = new Scripter(srv);
scrp.Options.ScriptDrops = false;
scrp.Options.WithDependencies = true;
Urn[] smoObjects = new Urn[1];
smoObjects[0] = db.Tables["社員マスタ"].Urn;
StringCollection sc = scrp.Script(smoObjects);
foreach (string st in sc)
{
Console.WriteLine(st);
}
Console.ReadLine();
}
}
}