You are here

public function BrowserRenderTrait::renderBase64 in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/jcalderonzumba/gastonjs/src/Browser/BrowserRenderTrait.php \Zumba\GastonJS\Browser\BrowserRenderTrait::renderBase64()

Renders base64 a page or selection to a file given by path

Parameters

string $imageFormat (PNG, GIF, JPEG):

array $options:

Return value

mixed

File

vendor/jcalderonzumba/gastonjs/src/Browser/BrowserRenderTrait.php, line 52

Class

BrowserRenderTrait
Trait BrowserRenderTrait @package Zumba\GastonJS\Browser

Namespace

Zumba\GastonJS\Browser

Code

public function renderBase64($imageFormat, $options = array()) {
  $fixedOptions = $this
    ->checkRenderOptions($options);
  return $this
    ->command('render_base64', $imageFormat, $fixedOptions["full"], $fixedOptions["selector"]);
}