What is the difference between a regular bitmap and a nine-patch image?



What is the difference between a regular bitmap and a nine-patch image?..

Answer / Rohit

A regular bitmap in Android OS is an image with fixed dimensions, where changes to its size would result in distortion of the content. On the other hand, a nine-patch image is a type of bitmap that can be stretched along two axes (horizontal and vertical) without causing the content within it to become distorted. It achieves this by defining nine regions: left, top, right, middle left, middle right, middle top, middle bottom, bottom left, and bottom right. These regions control how the image stretches when resized.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Android OS Interview Questions

What does android os mean?

1 Answers  


Can I upgrade my version of android?

1 Answers  


Who made android os?

1 Answers  


When does Android start and end an application process?

1 Answers   HCL,


What is pojo class in android?

1 Answers  


Will it work on my phone?

1 Answers  


Why did we open the Android source code?

1 Answers  


Does Android support the Bluetooth serial port profile?

1 Answers   UGC Corporation,


What innovations the oha members strive to achieve?

1 Answers  


Define Android application resource files?

1 Answers   HCL,


What is the correct way to check if a Compass sensor is present on the system? Explain your answer.

1 Answers  


What is androidmanifest.xml?

1 Answers  


Categories