大一课程计算机基础,蛮有意思的就整理了一下笔记
Imagine methods
pixel 像素
screen resolution 屏幕像素
- Raster graphics 栅格图像
- Vector Graphics
- Fractal

Color Model
- RGB - red, green and blue
- CMYK
- HSL & HSV - hue, saturation & lightness / value
Graphics Adapters
Components mounted on a video card:
- GPU - graphics processing unit
- video BIOS
- heatvideo memory
- RAMDAC
- heat sink
- output interfaces
- power supply
A graphics adapter is an electronic board that transform graphic data (text, pictures,video) into a video signal for a monitor.
Memory organization in graphics adapters
CGA - Color Graphic Adapter 彩色图形适配器
EGA - Enhanced Graphic Adapter 增强图形适配器
1 | ; fill the screen with bright white color |
VGA - Video Graphics Array 视频图形阵列
GDI
Graphics Device Interface
GDI + kernel + Windows API -> Microsoft Windows user interface
DC
Device Context
HDC
Handle DC
Assembly Basic
EAX
Accumulator 累加寄存器
EBX
Base 基地址寄存器
ECX
Counter 计数寄存器
EDX
Data 数据寄存器
Index and pointer registers
ESI
- Source index 源变址寄存器
EDI
- Destination index 目的变址寄存器
EBP
- Extended Base Pointer 栈指针寄存器,永远指向系统栈最上面的一个栈帧的栈顶
ESP
- Extended Stack Pointer 基址指针寄存器,永远指向系统栈最上面的一个栈帧的栈底
EIP
- Index Pointer Register
Segment Registers
● CS - the code segment register 代码段寄存器用于存放代码
● DS - the data segment register 数据段寄存器存放数据
● SS - the stack segment register 栈段寄存器,相当于堆栈段的首地址
● ES, FG, GS - Some string operations use an optional segment register to control memory addressing.
Variable types
db
data byte - memory allocation for 1 byte data
dw
data word - memory allocation for 2 byte data
dd
double word - memory allocation for 4 byte data
df
double word - memory allocation for 6 byte data
dq
double word - memory allocation for 8 byte data
FASM
一个例子
1 | format PE GUI 4 . 0 |
GetModuleHandle
用于获取一个应用程序或动态链接库的模块句柄,前提是目的模块已映射到调用该函数的进程内
LoadCursor
从一个与相关的可执行文件中载入指定的光标资源
ARGB
- Alpha(transparency) + RGB
参考资料:
Windows API GDI+官方文档
[关于Gdi+和GdiplusStartup](