Making a bitmap from nothing

Mikecrosoft
01-21-2004, 02:41 PM
hi

I need to make a irregular form using a bitmap that is the creation of multiples bitmaps, like corners, sides, control buttons etc, ok I need to make the window bitmap before to be showed to the user. (window image: Graphics)


How I can make that bitmap from other bitmaps, the new bitmap its the same size of the window, the other bitmaps just are pieces.


Thanks


Mike

Machaira
01-22-2004, 01:50 PM
The following takes a bitmap that is the caption of the window and draws it to a bitmap in memory, then assigns that bitmap to a picturebox:

Dim bmp As New Bitmap(Me.Width, 20)
Dim bmp2 As New Bitmap("caption.bmp")
Dim gr As Graphics = Graphics.FromImage(bmp)

gr.DrawImage(bmp2, 0, 0)

PictureBox1.Image = bmp

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum