About GDI object?

Answer Posted / naviyr

GDI object (is a graphical device object) used to write on a
device context for graphical output.
GDI objects are: Pen, Brush, Font,Line, Rectangle etc.
These objects are created using their corresponding win32
function. For eg, CreatePen, CreatePenIndirect are used to
create a pen object.
After these objects are created they would need to be
selected to the device context before processing using
"SelectObject" function.
GDI objects are not associated with any device context
during its creation. SelectObject function does that
assocaition.
Once an object is selected into the device context it would
be available until the object is destroyed through
DeleteObject or the program exits.

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is System call executable binary file into a process?

671


What is Function entry for DLL in win3.1?

666


explain WM_PAINT message ?????

2771


to take three string inputs in a two dimensional array of 3 rows and 15 columns and write a function that prints them.

2162


what is the stack size in win 32 program

936






What is an Hash Mapping in java?

2560


What is GDI object?

689


What Message to limit the size of window?

669


What is preemption and context switching?

659