equal
deleted
inserted
replaced
152 } else { |
152 } else { |
153 column |
153 column |
154 }; |
154 }; |
155 |
155 |
156 self.image.get(image_row, image_column) |
156 self.image.get(image_row, image_column) |
157 }, |
157 } |
158 Transform::Rotate90(_) => { |
158 Transform::Rotate90(_) => { |
159 let image_row = if self.transform.is_mirrored() { |
159 let image_row = if self.transform.is_mirrored() { |
160 column |
160 column |
161 } else { |
161 } else { |
162 self.image.height().wrapping_sub(1).wrapping_sub(column) |
162 self.image.height().wrapping_sub(1).wrapping_sub(column) |
167 } else { |
167 } else { |
168 row |
168 row |
169 }; |
169 }; |
170 |
170 |
171 self.image.get(image_row, image_column) |
171 self.image.get(image_row, image_column) |
172 }, |
172 } |
173 } |
173 } |
174 } |
174 } |
175 } |
175 } |
176 |
176 |
177 #[cfg(test)] |
177 #[cfg(test)] |