DFB and DIB comparison of: Vladislav Gelfer translation: huyoo (spacebar) 2004-6-25 4:46 Source: http: //www.codeproject.com/bitmap/DFB_vs_DIB.asp Translator's note: I follow the literal translation of foreign language , Meaning that it should be clear * _ ~
Summary: Between DFB and DIB
What is the bitmap? What is the device's unlocked bitmap (DIB)? What is the difference between the two? Why WINDOWS API has such a function: CreateBitMap, CreateCompabilityBitmap, CREATEDIBITMAP, and CREATEDIBSECTION? Function What is the difference between setBitMapBits and setDibits?
Honestly, in a long time, I can't answer these questions. I guess that I am not an answer that I can't answer these questions. And all these questions are perfectly solved, I wrote After yourself "kernel mode video driver" ^ _ ^!
I believe that all programmers using GDI should understand or know these answers.
2D accelerate EPOPEE (temporarily do not translate this word)
What is video card? Obviously, it is a hardware, used (translator Note: temporary or long) store an image and transfer it to a display device (display or other) above. This secondary image is In the interNal memory (video memory) stored in the video card, the video card is a Cathode (translator note: may be the meaning of the cathode) RAY rays. This is basic Common sense; today's video card will be more than what we know is much more than these.
Generally, how much is the size of the image? How many resources will be consumed? ApproxImately is speaking, a 640x480, a pixel takes up 8 Bit bits, which will take up 300K memory, 1600 of 800x600 The image will occupy 937.5K memory (the translator's note: should be a video card memory), and we need 2.25MB memory at 1024x768 24-bit / pixel image. This is very much! If you want to show such a Image, you must transfer images at a rate higher than 2MB / sec. Suppose now you want to make this pair image to create animations (such as moving it). This process will consume a lot of system resources. In addition, if you want to This pair image is adjusted on the screen, you must take it from the video memory, Alter, then Upload it Back. Simultaneous, taking into account the Drawing Complexity This dressing is solved (Involves ) ALTERING hundred thousand pixels, A Significant Payload for the CPU.