Yahoo 知識+ 將於 2021 年 5 月 4 日 (美國東岸時間) 停止服務,而 Yahoo 知識+ 網站現已轉為僅限瀏覽模式。其他 Yahoo 資產或服務,或你的 Yahoo 帳戶將不會有任何變更。你可以在此服務中心網頁進一步了解 Yahoo 知識+ 停止服務的事宜,以及了解如何下載你的資料。

關於VB...

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

更新:

因為電腦壞左down唔到野~希望你地打埋程式碼出黎~等我可以照抄!唔該!

2 個解答

評分
  • HUNG
    Lv 7
    1 十年前
    最愛解答

    圖片參考: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/212...

    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...

還有問題嗎?立即提問即可得到解答。