DrawBitmap() and setPixels(): what's the stride?

In most cases the stride is the same as the width. The stride is useful if you are trying to copy/draw a sub-region of a Bitmap. For instance, if you have a 100x100 bitmap and you want to draw the 50x50 top-right corner, you can use a width of 50px and a stride of 100px.

Stride is number of bytes used for storing one image row. Stride can be different from the image width. Most of the images are 4 byte aligned.

For ex. A 24 bit (RGB) image with width of 50 pixels. The total bytes required will be 150 (3(RGB)*50).

As image will be 4 byte aligned, in this case the byte required will become 152. So you will see stride as 152, width 50 and image alignment as 4 byte.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions


Thank You!
send