Android Question GetPixel from Zoomed Image

KingEdem

Member
Licensed User
Longtime User
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
what's the difference?

just calculate the pixel position based on the zoomed left/top offsets.
 
Upvote 0

KingEdem

Member
Licensed User
Longtime User
what's the difference?

just calculate the pixel position based on the zoomed left/top offsets.

I am changing the following property of imageview1:
Width
Height
Top
Left.

It becomes complicated to correlate the actual pixel.
 
Upvote 0

James Chamblin

Active Member
Licensed User
Longtime User
BitMapX = bmp.Width/imv.width * ImageViewX
BitMapY = bmp.Height/imv.Height * ImageViewY

bmp is the bitmap
imv is the imageview
ImageViewX,ImageViewY is the X,Y coordinate of the imageviuew you wish to sample
BitMapX, BitMapY is the X,Y coordinate of the BitMap to sample.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…