This is for Android. I need to display a bitmap that is like a progress meter. I wish to display the first x amount of pixels from left to right. I don't want to scale the image down, I want to do something more like cropping. I know that I can reduce the size of the Bitmap programmatically but was hoping for a more elegant solution.
I think this might help How to make a progress bar use an image to show progress instead of using a color in Android
Also user- citizen conn posted his github solution for something similar, have a look at his link https://gist.github.com/5c08cd2e99b1b572b497/83a00627dc68862b2c25aa27fc1ad346ad41ac6e