Logo Search packages:      
Sourcecode: acidbase version File versions  Download package

Cpdf::addJpegImage_common ( &$  data,
x,
y,
w = 0,
h = 0,
imageWidth,
imageHeight,
channels = 3 
)

common code used by the two JPEG adding functions

private

Definition at line 2931 of file class.pdf.php.

References o_image().

Referenced by addImage(), and addJpegFromFile().

                                                                                         {
  // note that this function is not to be called externally
  // it is just the common code between the GD and the file options
  $this->numImages++;
  $im=$this->numImages;
  $label='I'.$im;
  $this->numObj++;
  $this->o_image($this->numObj,'new',array('label'=>$label,'data'=>$data,'iw'=>$imageWidth,'ih'=>$imageHeight,'channels'=>$channels));

  $this->objects[$this->currentContents]['c'].="\nq";
  $this->objects[$this->currentContents]['c'].="\n".sprintf('%.3f',$w)." 0 0 ".sprintf('%.3f',$h)." ".sprintf('%.3f',$x)." ".sprintf('%.3f',$y)." cm";
  $this->objects[$this->currentContents]['c'].="\n/".$label.' Do';
  $this->objects[$this->currentContents]['c'].="\nQ";
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index