如何在windows10中將字串沿固定方程顯示
如圖
uj5u.com熱心網友回復:
GDI+...uj5u.com熱心網友回復:
圖形用戶界面可以學習C++ Builder,架構先進(和C#一樣拖控制元件),入門比較容易。C++ Builder的較新版本——RAD Studio XE3以上版本添加對iOS和Android的支持工具包,讓開發者撰寫的Delphi/C++應用可以同時在Windows、OS X、iOS和Android平臺上運行。現在最新版本是RAD Studio 10.2。
僅供參考:
初學者學習C++ Builder第一個程式(模擬聊天室),經典!
http://blog.163.com/tab_98/blog/static/11924097201693033057497/
C++ Builder繪圖示例(模擬時鐘)
http://blog.163.com/tab_98/blog/static/11924097201611324819376/
從C語言的選單界面管理系統到C++ Builder的圖形用戶界面,一個簡單的電話簿Demo例子
http://blog.163.com/tab_98/blog/static/1192409720158673337998/
C++ Builder寫的《ZEC 紙牌游戲21點》
http://blog.163.com/tab_98/blog/static/119240972016115113039304/
C++ Builder寫的《ZEC 僵尸版打地鼠》
http://blog.163.com/tab_98/blog/static/11924097201601084117748/
C++ Builder寫的《ZEC 推箱子》
http://blog.163.com/tab_98/blog/static/11924097201612011839642/
書籍推薦:
《C++Builder 6程式設計教程(第二版)》 (陸衛忠,劉文亮 等編著 /2011-04-01 /科學出版社)(當當網)
《C++Builder 6編程實體精解》(趙明現),PDF,是數字版的,非掃描版的,里面還有一個俄羅斯方塊游戲的完整實作。
《精彩C++Builder 6程式設計》(臺灣 吳逸賢),里面有10幾個簡單小游戲的實作,可以自己看懂以后再重寫,才是自己掌握的。
《C++ Builder 5高級編程實體精解》(劉濱 編著)都是較大的實用的程式。
uj5u.com熱心網友回復:
Using the World Transformation--------------------------------------------------------------------------------
The world transformation is a property of the Graphics class. The numbers that specify the world transformation are stored in a Matrix object, which represents a 3 ×3 matrix. The Matrix and Graphics classes have several methods for setting the numbers in the world transformation matrix. The examples in this section manipulate rectangles because rectangles are easy to draw and it is easy to see the effects of transformations on rectangles.
We start by creating a 50 by 50 rectangle and locating it at the origin (0, 0). The origin is at the upper-left corner of the client area.
Rect rect(0, 0, 50, 50);
Pen pen(Color(255, 255, 0, 0), 0);
graphics.DrawRectangle(&pen, rect);
The following code applies a scaling transformation that expands the rectangle by a factor of 1.75 in the x direction and shrinks the rectangle by a factor of 0.5 in the y direction:
Rect rect(0, 0, 50, 50);
Pen pen(Color(255, 255, 0, 0), 0);
graphics.ScaleTransform(1.75f, 0.5f);
graphics.DrawRectangle(&pen, rect);
The result is a rectangle that is longer in the x direction and shorter in the y direction than the original.
To rotate the rectangle instead of scaling it, use the following code instead of the preceding code:
Rect rect(0, 0, 50, 50);
Pen pen(Color(255, 255, 0, 0), 0);
graphics.RotateTransform(28.0f);
graphics.DrawRectangle(&pen, rect);
To translate the rectangle, use the following code:
Rect rect(0, 0, 50, 50);
Pen pen(Color(255, 255, 0, 0), 0);
graphics.TranslateTransform(150.0f, 150.0f);
graphics.DrawRectangle(&pen, rect);
--------------------------------------------------------------------------------
uj5u.com熱心網友回復:
上面的那個問題已經解決,現在不知道如何填充三角形內部,達到如上圖所示效果。另外,該題目要求用VS,
uj5u.com熱心網友回復:
CRgn::FillRgn();uj5u.com熱心網友回復:
GDI+,旋轉文字uj5u.com熱心網友回復:
代碼請不要使用圖片 !uj5u.com熱心網友回復:
使用螢屏截圖圖片算好的,還有使用手機拍照的呢!
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/91079.html
標籤:界面
上一篇:求大神看看此dmp檔案的意思。
