Merge pull request #1221 from ZoneMinder/rotate_dimensions_when_image_is_rotated

implement Width and Height functions, and test for image rotation and…
This commit is contained in:
Andrew Bauer 2016-02-04 10:17:19 -06:00
commit ab7b4ab3e6
1 changed files with 12 additions and 0 deletions

View File

@ -80,5 +80,17 @@ class Monitor {
return( $streamSrc );
} // end function etStreamSrc
public function Width() {
if ( $this->Orientation() == '90' or $this->Orientation() == '270' ) {
return $this->{'Height'};
}
return $this->{'Width'};
}
public function Height() {
if ( $this->Orientation() == '90' or $this->Orientation() == '270' ) {
return $this->{'Width'};
}
return $this->{'Height'};
}
}
?>