public function Output2Base64($AvatarSize = 0)
    {
        if (!$AvatarSize) {
            $AvatarSize = $this->AvatarSize;
        }

        ob_start();
        imagepng($this->Resize($AvatarSize));
        $content = ob_get_contents();
        ob_end_clean();

        return 'data:image/png;base64,' . base64_encode($content);
    }
public function Output2Base64($AvatarSize = 0)
    {
        if (!$AvatarSize) {
            $AvatarSize = $this->AvatarSize;
        }

        ob_start();
        imagepng($this->Resize($AvatarSize));
        $content = ob_get_contents();
        ob_end_clean();

        return 'data:image/png;base64,' . base64_encode($content);
    }
public function Output2Base64 ( $ AvatarSize = 0 ) { if ( ! $ AvatarSize ) { $ AvatarSize = $ this -> AvatarSize ; } ob_start ( ) ; imagepng ( $ this -> Resize ( $ AvatarSize ) ) ; $ content = ob_get_contents ( ) ; ob_end_clean ( ) ; return 'data:image/png;base64,' . base64_encode ( $ content ) ; }
Output Base64 encoded image data
@param int $AvatarSize
@return string
Output Base64 encoded image data