What should you do?

You are developing a .NET Framework 2.0 application that will be used to manipulate graphics files in GIF, JPG and PNG formats.
You are required to choose an appropriate data type to store graphic files whilst your solution must use the least amount of code.
What should you do?

You are developing a .NET Framework 2.0 application that will be used to manipulate graphics files in GIF, JPG and PNG formats.
You are required to choose an appropriate data type to store graphic files whilst your solution must use the least amount of code.
What should you do?

A.
The Icon class should be used

B.
The Metafile class should be used

C.
The Image class should be used

D.
The Bitmap class should be used

Explanation:
Because the Bitmap class is an implementation of the Image abstract class that is capable of working
with several types of image formats this class should be considered for usage in the scenario.
Incorrect Answers:
A: This class should not be used in the scenario because the Icon class only allows you to work with small bitmap images.
B: This class should not be used in the scenario because this class can not be used to manipulate images in different formats.
C: This class should not be used in the scenario because this class is an abstract class which requires functionality to be implemented which requires programming effort.



Leave a Reply 1

Your email address will not be published. Required fields are marked *


mr_tienvu

mr_tienvu

Correct answer is D