src/Beluga/Drawing/Image/GdImage.php
public final function dispose()
   {

      if ( $this->disposed )
      {
         return;
      }

      if ( \is_resource( $this->r ) )
      {
         \imagedestroy( $this->r );
      }

      $this->r        = null;
      $this->size     = null;
      $this->colors   = [];
      $this->mimeType = null;
      $this->_file    = null;
      $this->disposed = true;

   }
public final function dispose()
   {

      if ( $this->disposed )
      {
         return;
      }

      if ( \is_resource( $this->r ) )
      {
         \imagedestroy( $this->r );
      }

      $this->r        = null;
      $this->size     = null;
      $this->colors   = [];
      $this->mimeType = null;
      $this->_file    = null;
      $this->disposed = true;

   }
public final function dispose ( ) { if ( $ this -> disposed ) { return ; } if ( \ is_resource ( $ this -> r ) ) { \ imagedestroy ( $ this -> r ) ; } $ this -> r = null ; $ this -> size = null ; $ this -> colors = [ ] ; $ this -> mimeType = null ; $ this -> _file = null ; $ this -> disposed = true ; }
Disposes the current image resource.
Disposes the current image resource .