atesh Posted September 14, 2003 Posted September 14, 2003 Can you show me brief code to do this: User selects bitmap files and enters the coordinates for each one to be put onto one large bitmap with all the selected images. Thanks. Quote To err is human, to really foul things up requires a computer.
aewarnick Posted September 14, 2003 Posted September 14, 2003 Create a new Bitmap with certain dimentions, use it as your drawing surface. Get a graphics object from the Bitmap Graphics g= Graphics.FromImage(bmp); Draw all the images onto the surface Bitmap. g.DrawImage(); g.DrawImage(); Then in OnPaint or equivalent draw the surface Bitmap e.DrawImage(); Quote C#
atesh Posted September 14, 2003 Author Posted September 14, 2003 2 questions: (1) How do I create the bitmap to use as my drawing surface? and (2) After I draw the final image can I save it to hard disk as BMP? Quote To err is human, to really foul things up requires a computer.
aewarnick Posted September 14, 2003 Posted September 14, 2003 You can save it to disk as a Bmp, Gif, Jpg, Tif, Png... You create your surface Bitmap just like any other: Bitmap b=new Bitmap(300, 200); Graphics g= Graphics.FromImage(b); Use g to draw the other images. b.Save("C:\bmp.png"); Quote C#
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.