Skip to content

Commit

Permalink
QC[code]: Fix typos, again...
Browse files Browse the repository at this point in the history
  • Loading branch information
artdeell committed Jan 10, 2024
1 parent b958f4b commit a7f036a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public Bitmap crop(int targetMaxSide) {
Matrix imageInverse = new Matrix();
MatrixUtils.inverse(mImageMatrix, imageInverse);
// By inverting the matrix we will effectively "divide" our rectangle by it, thus getting
// its two points on the bitmap's surface. Math be cool indeed.
// its two points on the surface of the bitmap. Math be cool indeed.
Rect targetRect = new Rect();
MatrixUtils.transformRect(mHostView.mSelectionRect, targetRect, imageInverse);
// Pick the best dimensions for the crop result, shrinking the target if necessary.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ public class RegionDecoderCropBehaviour extends BitmapCropBehaviour {
};

/**
* Decoade a region from this Bitmap based on a subsection in the View coordinate space.
* Decode a region from this Bitmap based on a subsection in the View coordinate space.
* @param targetDrawRect an output Rect. This Rect is the position at which the region must
* be rendered within subsectionRect.
* @param subsectionRect the subsection in View coordinate space. Note that this Rect is modified
* by this function and shouldn't be re-used.
* @return null if the resulting region is bigger than the original image
* null if the resulting region is completely out of the original image bounds
* null if the resulting region is smaller than 16x16 pixels
* null if a region decoding error has occured
* null if a region decoding error has occurred
* the resulting Bitmap region otherwise.
*/
private Bitmap decodeRegionBitmap(RectF targetDrawRect, RectF subsectionRect) {
Expand Down

0 comments on commit a7f036a

Please sign in to comment.