Friday, September 24, 2010

The bitmap on the Symbian operating



Symbian operating a bit in the bitmap and the Windows SDK similar to a Context with Device, following some comments:

Bitmap graphics context
By the CBitmapContext class provides a Graphics context (CGraphicsContext) bitmap graphics implementation. It provides the following features:
1, clear and copy rectangular area;
2 bitmap block transfer (block transfer);
3, set the pen color and gray;
4, set the shadow mode;
5, the GC settings reset to default values

Window Server Client-side API provides an implementation: CWindowGc, which is mainly used for screen graphics, and the other to achieve a CFbsBitGc, which is mainly used for in-memory bitmap drawing, each of these are useful:)

See Figure




Bitmap graphics device
By the CBitmapDevice class provides a Graphics device (CGraphicsDevice) bitmap graphics to achieve.

Here Window Server Client-side API provides an implementation, CWsScreenDevie, used for screen rendering. Another realization is CFbsBitmapDevice, used to draw an in-memory bitmap, there is a CFbsScreenDevice, is primarily used (seldom used) to directly access the screen, skip the window server intermediary.

See Figure



Maintain the operation of the bitmap in CFbsBitmap, it can represent a font and bitmap server is managed by a bitmap. It provides digital map generation, loading and storage. There is also a TBitmapUtil related class, this class provides
Many functions to the user to manipulate the bitmap bits (!), Oh, is not very practical ah.

Bitmap is generally based on their size is stored in two different heap, large bitmap (there is a limit value for 4KB) storage location and small size of the bitmap is different, store large bitmap heap can automatic defragmentation to optimize their space:)

Each bitmap has a two-inch scale units, one twip size, this is the real world of WYSIWYG sizes, and one pixel size.

If you want to be more direct action bit map, you can use CFbsBitmap:: DataAddress (), it can get a bitmap loaded into memory address, inferior race to manipulate bitmap bit, I am afraid that is the fastest way, but still very trouble, huh, huh, attention, such as RGB to operate here, to note that the color difference, the general concept is 0xXXXXXX, with 6 bits to represent the RGB values, which became the 24-bit color, but the 3650/7650 is 4094 color, or 12bit color (4KColor), so operation, we have to switch between the two, we can use TRgb:: Color4K conversion, attention, and its parameters are TInt value, do not write * Address style, or in the simulation device on the pass, the phone will report Kern-Exec 3 errors, and a headache:)






Recommended links:



Cottage in China



VOB to Zune



DLL gray dove release type articles of the back door of the signature changes



after the fall of THE open source mysql database



Zhongguancun business will have been cleaned up and returned rectifying Zanji



Watch cool MECHANICAL picture production process



AVI to 3GP



Picked Font Tools



Is Out Of Date, ADSL Anecdotes



evaluation Audio Video Tools



The official version of Opera 10 September 1 showing the speed will increase 40%



Good Password MANAGERS



DAT to 3GP



BenQ compete in, with a hope that the road



News about Graphic CAD



No comments:

Post a Comment