Question:How can you draw a black border around a JPEG image that you have saved to disk and then save the updated image back to the disk? - VB.NET 

A Create a Graphics object by loading the JPEG image from the disk. Draw the border by calling Graphics.DrawRectangle. Finally, save the updated image by calling Graphics.Save. 

B Create a Bitmap object by loading the JPEG image from the disk. Draw the border by calling Bitmap.DrawRectangle. Finally, save the updated image by calling Bitmap.Save. 

C Create a Bitmap object by loading the JPEG image from the disk. Create a Graphics object by calling Graphics.FromImage. Draw the border by calling Graphics.DrawRectangle. Finally, save the updated image by calling Bitmap.Save.
 

D Create a Bitmap object by loading the JPEG image from the disk. Create a Graphics object by calling Bitmap.CreateGraphics. Draw the border by calling Graphics.DrawRectangle. Finally, save the updated image by calling Bitmap.Save. 

+ Answer
+ Report
Total Preview: 1620

Copyright © 2024. Powered by Intellect Software Ltd