Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private function getSizeByFixedWidth($newWidth)
- {
- $ratio = $this->height / $this->width;
- $DifHeight = $this->height - $newHeight ;
- $DifWidth = $this->width - $newWidth ;
- $bigger=max(abs($DifHeight),abs($DifWidth) )
- if $bigger=abs($DifHeight);
- $NewHeight = $this->height - $DifHeight
- $ChangeHeight = $NewHeight/$this->height;
- $NewHeight = $this->height * $Change;
- return $NewHeight;
- }
Add Comment
Please, Sign In to add comment