關於VB...

2006-11-29 7:22 am
我想要一個VB程式碼,係寫一個同小畫家好似ge程式,當然用VB就整唔到好靚,但係我都想整得特別d!基本要有得畫畫,用唔同ge顏色,同埋可以俾人選擇一D野咁囉!唔該!十萬火急呀!

回答 (2)

2006-11-29 6:39 pm
✔ 最佳答案

圖片參考:http://hk.yimg.com/i/icon/16/1.gif
下面有一個 example program 可以做到類似小畫家的功能:

Paint256 v1.05 10/07/99 - translated 18/03/2000
DESCRIPTION
The program has to be run in a 256 colors-screen modus state, since it concentrates on making bitmaps with a 256 colors pallet, containing gradient or fluent colors. Besides using fluent colors, the program also has a feature adding shade to all drawings. The fact, to apply fluent colors and shade is made so easy, makes this program special. It is at least a good addition to other painting programs.

Most functions work in such an obvious way, they need no explanation. So I provide you here with those things that are not so obvious.


圖片參考:http://www.codeguru.com/img/legacy/vb_graphics/2127_sshot1.gif



FUNCTIONS
10 in a row, from top to bottom:

Select
Points
Lines
Rectangle-ellipse *
Filled rectangle-ellipse *
Filling (doesn't work on black surfaces !)
Formula *
Text *
Shade Frames *
Arrows *
* = click them with the right mouse button to set their parameters by means of a dialog.

In most cases you can repeat the last action with new left/right color settings. You can Undo before, or not. This way you can try things out until you find the best setting.

STYLE
(three buttons bottom-right side of the pallet)

Shade
Pen Width
Fill-modus
----> do experiment, you will see, it's easy

TEXT
A multi-line text you can align (left/right/center). A single line of text you can tilt or turn over. To place it in your image you can think of it as a stamp. Click in the image, without releasing the mouse button. A 'rubber box' you can move around, will appear showing the size of the stamp. The stamp is made the moment you release the mouse button.

FLUENT COLORS
A condition to use this is of course there has to be a pallet with gradient fluent colors. Pallets extracted from a bitmap, will probably not have such a pallet...

Select in the pallet on the left, the Start color with the left mouse button and the End color with the right mouse button. Then you choose in the Fill-modus dialog, the preferred color pattern. Each following drawing action will use these selected settings and produce fluent colors.

Download Zipped Source Code (97k)

Download Zipped EXE and Help File (127k)


圖片參考:http://hk.yimg.com/i/icon/16/1.gif
詳細網址,可參看:
http://www.codeguru.com/vb/gen/vb_graphics/article.php/c2369/




2006-11-30 4:08 pm


收錄日期: 2021-04-13 16:36:30
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20061128000051KK05220

檢視 Wayback Machine 備份