mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
correctly copy cropped image (Conrad Kramer)
git-svn-id: https://zxing.googlecode.com/svn/trunk@2242 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
94cae7f083
commit
6e492e54de
|
@ -48,7 +48,7 @@ CGImageRef CGImageLuminanceSource::createImageFromBuffer
|
|||
memcpy(bytes, baseAddress+top*bytesPerRow, size);
|
||||
} else {
|
||||
for(int y=0; y<height; y++) {
|
||||
memcpy(bytes+y*bytesPerRow,
|
||||
memcpy(bytes+y*newBytesPerRow,
|
||||
baseAddress+left*4+(top+y)*bytesPerRow,
|
||||
bytesPerRow);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue