728x90
반응형
728x170
■ BitBlt API 함수를 선언하는 방법을 보여준다.
▶ 예제 코드 (C#)
using System;
using System.Runtime.InteropServices;
#region 비트맵 복사하기 - BitBlt(targetDeviceContextHandle, targetX, targetY, width, height, sourceDeviceContextHandle, sourceX, sourceY, rasterOperationCode
/// <summary>
/// 비트맵 복사하기
/// </summary>
/// <param name="targetDeviceContextHandle">타겟 디바이스 컨텍스트 핸들</param>
/// <param name="targetX">타겟 X</param>
/// <param name="targetY">타겟 Y</param>
/// <param name="width">너비</param>
/// <param name="height">높이</param>
/// <param name="sourceDeviceContextHandle">소스 디바이스 컨텍스트 핸들</param>
/// <param name="sourceX">소스 X</param>
/// <param name="sourceY">소스 Y</param>
/// <param name="rasterOperationCode">래스터 연산 코드</param>
/// <returns>처리 결과</returns>
[DllImport("gdi32")]
private static extern bool BitBlt
(
IntPtr targetDeviceContextHandle,
int targetX,
int targetY,
int width,
int height,
IntPtr sourceDeviceContextHandle,
int sourceX,
int sourceY,
int rasterOperationCode
);
#endregion
728x90
반응형
그리드형(광고전용)
'C# > WIN32' 카테고리의 다른 글
[C#/WIN32] ReleaseCapture API 함수 선언하기 (0) | 2021.12.06 |
---|---|
[C#/WIN32] SetCapture API 함수 선언하기 (0) | 2021.12.06 |
[C#/WIN32] ClientToScreen API 함수 선언하기 (0) | 2021.12.05 |
[C#/WIN32] DeleteDC API 함수 선언하기 (0) | 2021.12.05 |
[C#/WIN32] CreateDC API 함수 선언하기 (0) | 2021.12.05 |
[C#/WIN32] GetWindowDC API 함수 선언하기 (0) | 2021.10.05 |
[C#/WIN32] GetClientRect API 함수 선언하기 (0) | 2021.10.05 |
[C#/WIN32] EnableWindow API 함수 선언하기 (0) | 2021.10.05 |
[C#/WIN32] GetKeyboardLayoutName API 함수 선언하기 (0) | 2021.10.05 |
[C#/WIN32] GetKeyboardState API 함수 선언하기 (0) | 2021.09.15 |
댓글을 달아 주세요