resource() public method

Get the image resource to directly interact with it
public resource ( ) : resource
return resource
コード例 #1
0
ファイル: GdTest.php プロジェクト: nicksagona/PopPHP
 public function testGetImageResource()
 {
     $i = new Gd(__DIR__ . '/../tmp/test.jpg');
     $i->setStrokeColor(new Rgb(0, 0, 0))->drawRectangle(10, 10, 100, 100);
     $this->assertNotNull($i->resource());
 }