public function point(awColor $color, awPoint $p) { if ($p->isHidden() === FALSE) { $rgb = $this->getColor($color); imagesetpixel($this->resource, $this->x + round($p->x), $this->y + round($p->y), $rgb); } }
/** * Draw a pixel * * @param awColor $color Pixel color * @param awPoint $p */ public function point(awColor $color, awPoint $p) { if ($p->isHidden() === FALSE) { list($red, $green, $blue, $alpha) = $this->getColor($color); $point = new SWFShape(); $point->setLine(1, $red, $green, $blue, $alpha); $point->movePenTo($this->x + round($p->x), $this->y + round($p->y)); $point->drawLine(0.5, 0.5); $point->movePen(-0.5, 0); $point->drawLine(0.5, -0.5); $this->movie->add($point); } }