Skip to content

Commit

Permalink
Added copyMetaDataFrom method to EncodedImage
Browse files Browse the repository at this point in the history
  • Loading branch information
lukkm authored and tyronen committed Jul 20, 2015
1 parent d069613 commit aa8bd4f
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,20 @@ public void parseMetaData() {
}
}

/**
* Copy the meta data from another EncodedImage.
*
* @param encodedImage the EncodedImage to copy the meta data from.
*/
public void copyMetaDataFrom(EncodedImage encodedImage) {
mImageFormat = encodedImage.getImageFormat();
mWidth = encodedImage.getWidth();
mHeight = encodedImage.getHeight();
mRotationAngle = encodedImage.getRotationAngle();
mSampleSize = encodedImage.getSampleSize();
mStreamSize = encodedImage.getSize();
}

/**
* Returns true if all the image information has loaded, false otherwise.
*/
Expand Down

0 comments on commit aa8bd4f

Please sign in to comment.