CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - c l
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
GUI Develop
Windows Kernel
WinSock-NDIS
Driver Develop
ADO-ODBC
GDI-Bitmap
CSharp
.net
Multimedia Develop
Communication
Shell api
ActiveX/DCOM/ATL
IME Develop
ISAPI-IE
Hook api
Screen saver
DirextX
Process-Thread
Console
File Operate
Printing program
Multi Monitor
DNA
Other
Search - c l - List
[
GDI-Bitmap
]
显示bmp图像的程序
DL : 0
640*480 256 色 .BMP 文件显示程序,可以浏览、同时显示 4 幅图象,也可以 在屏幕上开 一个窗口显示 .BMP 图象,并可以使用上下左右箭头键、PageUp/PageDown、Ctrl+Left、Ctr l+Right键浏览整幅图象,在S3、ATI等VGA卡上 调试通过-640* 480256 color. BMP file display program can browse, also showed four images on the screen can also open a window on the show. BMP images and can be used above and below the arrow keys, and Page/Prompt, Ctrl Left, Right keys Ctr l View the entire images in S3, ATI VGA cards such as debugging through
Date
: 2025-12-27
Size
: 4kb
User
:
郭指挥
[
GDI-Bitmap
]
OPENGL_DSP
DL : 0
opengl飞机姿态模拟,与c++l联合开发,实现动态显示-opengl airplane flying model
Date
: 2025-12-27
Size
: 13.33mb
User
:
尤成新
[
GDI-Bitmap
]
GDI Bitmap C++ Code
DL : 0
#include <Windows.h> #include <gdiplus.h> using namespace Gdiplus; // Forward declarations LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { // Initialize GDI+ GdiplusStartupInput gdiplusStartupInput; ULONG_PTR gdiplusToken; GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL); // Create the window WNDCLASSEX wcex = { 0 }; wcex.cbSize = sizeof(WNDCLASSEX); wcex.style = CS_HREDRAW | CS_VREDRAW; wcex.lpfnWndProc = WndProc; wcex.hInstance = hInstance; wcex.hCursor = LoadCursor(NULL, IDC_ARROW); wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1); wcex.lpszClassName = L"MyWindowClass"; RegisterClassEx(&wcex); HWND hWnd = CreateWindow(L"MyWindowClass", L"My Window", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, NULL, hInstance, NULL); ShowWindow(hWnd, nCmdShow); UpdateWindow(hWnd); // Run the message loop MSG msg = { 0 }; while (GetMessage(&msg, NULL, 0, 0)) { TranslateMessage(&msg); DispatchMessage(&msg); } // Shutdown GDI+ GdiplusShutdown(gdiplusToken); return (int)msg.wParam; } LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { case WM_PAINT: { PAINTSTRUCT ps; HDC hdc = BeginPaint(hWnd, &ps); // Create a Bitmap object and draw a line on it Bitmap bmp(100, 100); Graphics g(&bmp); Pen pen(Color(255, 0, 0, 0)); // Red pen g.DrawLine(&pen, 0, 0, 99, 99); // Draw the bitmap on the window Graphics graphics(hdc); graphics.DrawImage(&bmp, 0, 0); EndPaint(h
Date
: 2022-12-27
Size
: 392.75kb
User
:
khaledmagd73@gmail.com
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.