Previous Section   Next Section

Hour 9

1:

What is the primary class for GDI+?

A1:

Graphics.

2:

Does GDI+ have a SelectObject() function equivalent? If it does, what is it?

A2:

No.

3:

What unique feature does GDI+ provide alpha blending that the AlphaBlend() function in GDI doesn't provide?

A3:

It provides transparent colors for creating brushes and pens. The AlphaBlend() function only paints a bitmap to where it appears transparent.

4:

How do you keep a Windows Form from painting its background?

A4:

Override the OnPaintBackground() method and do nothing in the new implementation.


  Previous Section   Next Section
Top