วิธีหาขนาดของข้อความ ว่ามีขนาดความกว้าง และความสูงกี่ Pixel ทําได้ด้วยตัวอย่าง Function นี้
private SizeF getsizeFont(string text, Font drawFont) {
Bitmap textBitmap = new Bitmap(1, 1);
Graphics drawGraphics = Graphics.FromImage(textBitmap);
return drawGraphics.MeasureString(text, drawFont);
}
วิธีใช้ function คือ
//Width size
float w = getsizeFont("", new Font("Arial", 16)).Width;
//Height size
float h = getsizeFont("", new Font("Arial", 16)).Height;
สวัสดีครับ บทความนี้เราจะมาเรียนรู้ว่า Analog input ใน Arduino มันคืออะไร มีวิธีการใช้งานอย่างไร พร้อมทั้งตัวอย่างการใช้งานเบื้องต้น เรามาเริ่มต้นไปทีละ Step ดังนี้ครับ
สวัสดีครับ บทความนี้เราจะมาเรียนรู้การใช้งานคําสั่ง "git int" กันครับ
sql update เป็นคําสั่งที่ใช้สําหรับแก้ไขข้อมูลในตาราง สามารถแก้ไขข้อมูลได้หลาย Field และหลาย Record โดยจะขึ้นอยู่กับ Where ที่ผู้ใช้กําหนดDatabase supportMySQL,Microsoft Access,SQL Server,Oracleรูปแบบการใช้