ok, let's me to make bitmap image!

Started by
12 comments, last by Link 21 years ago
No guarantees. I have a life you know...

give it a shot and post back with any specific problems you have
Advertisement
Link, if you come up with problems, here are the steps that you should take:
1. Try figure it out by yourself. Maybe it''s a syntax error, are you missing any semi-colons, etc.
2. Go to MSDN and read the documentation. LoadImage() is something that you should look for.
3. Search for online tutorials on how to load bitmap files and display them on screen and study them. Here''s one of them: theForger''s WinProg tutorials.
4. If all the steps above don''t work, then go here and ask.

Current project: 2D in Direct3D engine.
% completed: ~35%
Status: Active.
what i would to do is a siple app that save my drawing into a bitmap file!
Never i have prove to do it, so now i must understand how i can do it?
Here are a few options you can choose:
1. Use Direct3D
There are functions called D3DXSaveTextureToFile() and D3DXSaveSurfaceToFile(). All you need to do is to call one of them, and pass a texture object or a surface object.
Pos: Easy to use, just one call, you get a bitmap file
Neg: You need to know Direct3D first. The init/restore procedures are nasty.

2. Make your own function
Write the bitmap file writing function on your own.
Pos: You don''t need to know what Direct3D or WinAPI is.
Neg: You need to understand pointers really well. You need to know the format of a bitmap file.

3. Don''t use C++, use VB (dunno with C#).

Current project: 2D in Direct3D engine.
% completed: ~35%
Status: Active.

This topic is closed to new replies.

Advertisement