JFIF  x x C         C     "        } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz        w !1AQ aq"2B #3Rbr{ gilour

File "Image.php"

Full Path: /home2/yvrgircc/public_html/ariseskilltech.com/vendor/simplesoftwareio/simple-qrcode/src/Image.php
File size: 1019 B
MIME-type: text/x-php
Charset: utf-8

<?php

namespace SimpleSoftwareIO\QrCode;

class Image
{
    /**
     * Holds the image resource.
     *
     * @var resource
     */
    protected $image;

    /**
     * Creates a new Image object.
     *
     * @param $image string An image string
     */
    public function __construct($image)
    {
        $this->image = imagecreatefromstring($image);
    }

    /*
     * Returns the width of an image
     *
     * @return int
    */
    public function getWidth()
    {
        return imagesx($this->image);
    }

    /*
     * Returns the height of an image
     *
     * @return int
     */
    public function getHeight()
    {
        return imagesy($this->image);
    }

    /**
     * Returns the image string.
     *
     * @return string
     */
    public function getImageResource()
    {
        return $this->image;
    }

    /**
     * Sets the image string.
     *
     * @param resource $image
     */
    public function setImageResource($image)
    {
        $this->image = $image;
    }
}