|
-
Aug 22nd, 2009, 12:43 PM
#1
Thread Starter
Lively Member
[RESOLVED] Draw picture using WinAPI and save result to bmp file
Hello all.
How can I draw something and write some text in picture then save result to bmp file? Using only API
-
Aug 22nd, 2009, 02:26 PM
#2
Re: Draw picture using WinAPI and save result to bmp file
How familiar are you with APIs? How familiar are you with creating and using device contexts, memory bitmaps, and the GDI dll in general?
Your question is far to vague to be answered simply. If you have no experience drawing with APIs, you have quite a bit to learn. This can be done in VB without APIs with the picturebox control.
Here is a very nice link talking about GDI bitmaps.
Once there, click on Tutorials link near top of page. Then browse the tutorials you find interesting; many discuss graphics.
-
Aug 23rd, 2009, 05:06 AM
#3
Thread Starter
Lively Member
Re: Draw picture using WinAPI and save result to bmp file
Thank u! Problem resolved (may be ;-) )
-
Aug 3rd, 2025, 07:32 AM
#4
Re: [RESOLVED] Draw picture using WinAPI and save result to bmp file
Test your AI slop toy somewhere else.
-
New Member
Re: [RESOLVED] Draw picture using WinAPI and save result to bmp file
Hi everyone,
How can I use the Windows API to draw shapes and add text onto an image, then save the final output as a BMP file? I'm looking for an API-only solution without using external graphics libraries.
Links removed by Site Administrator.
-
Re: [RESOLVED] Draw picture using WinAPI and save result to bmp file
GDI32 still works, easy to use and no dependencies.
since u want to save as BMP, VB6 can do it for u.
so, first thing, look into GDI32 API, u can draw rectangles and other shapes, u can draw text directly into a picturebox.
bitblt and stretchblt are great API for speed.
u can actually use stretchblt to draw filled rectangles by using a 1x1 pixel source.
SetPixel can be used to place a dot in a hidden picturebox so u have a palette to use. everything u can do using copy without any external loading.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|