# \CGExtensionswatermarker

## Summary

Methods
Properties
Constants
__construct()
get_error()
set_watermark_text()
set_watermark_image()
set_alignment()
get_alignment()
set_font()
set_text_size()
set_text_angle()
set_text_color()
set_background_color()
set_translucency()
is_ready()
create_watermark_rsrc()
get_watermarked_image()
create_watermarked_image()
No public properties found
ALIGN_UL
ALIGN_UC
ALIGN_UR
ALIGN_ML
ALIGN_MC
ALIGN_MR
ALIGN_LL
ALIGN_LC
ALIGN_LR
No protected methods found
No protected properties found
N/A
_generateImageFromText()
_loadFile()
$_text
$_bg_color
$_text_color
$_text_angle
$_text_font
$_text_size
$_wmimg_file
$_alignment
$_hmargin
$_vmargin
$_padding_x
$_padding_y
$_transparent
$_translucency
$t_wmsize
$h_textcolor
$t_error
N/A

File
  lib/class.watermarker.php
Class hierarchy
  \CGExtensions\watermarker

## Tags

todo |

## Constants

### ALIGN_UL

    ALIGN_UL

#

## Tags

todo |

### ALIGN_UC

    ALIGN_UC

#

## Tags

todo |

### ALIGN_UR

    ALIGN_UR

#

## Tags

todo |

### ALIGN_ML

    ALIGN_ML

#

## Tags

todo |

### ALIGN_MC

    ALIGN_MC

#

## Tags

todo |

### ALIGN_MR

    ALIGN_MR

#

## Tags

todo |

### ALIGN_LL

    ALIGN_LL

#

## Tags

todo |

### ALIGN_LC

    ALIGN_LC

#

## Tags

todo |

### ALIGN_LR

    ALIGN_LR

#

## Tags

todo |

## Properties

### $_text

    $_text

#

## Tags

todo |

### $_bg_color

    $_bg_color

#

## Tags

todo |

### $_text_color

    $_text_color

#

## Tags

todo |

### $_text_angle

    $_text_angle

#

## Tags

todo |

### $_text_font

    $_text_font

#

## Tags

todo |

### $_text_size

    $_text_size

#

## Tags

todo |

### $_wmimg_file

    $_wmimg_file

#

## Tags

todo |

### $_alignment

    $_alignment

#

## Tags

todo |

### $_hmargin

    $_hmargin

#

## Tags

todo |

### $_vmargin

    $_vmargin

#

## Tags

todo |

### $_padding_x

    $_padding_x

#

## Tags

todo |

### $_padding_y

    $_padding_y

#

## Tags

todo |

### $_transparent

    $_transparent

#

## Tags

todo |

### $_translucency

    $_translucency

#

## Tags

todo |

### $t_wmsize

    $t_wmsize

#

## Tags

todo |

### $h_textcolor

    $h_textcolor

#

## Tags

todo |

### $t_error

    $t_error

#

## Tags

todo |

## Methods

### __construct()

    __construct()

#

## Tags

todo |

### get_error()

    get_error()

#

## Tags

todo |

### set_watermark_text()

    set_watermark_text( $text)

#### Parameters

| $text |

#

## Tags

todo |

### set_watermark_image()

    set_watermark_image( $filename)

#### Parameters

| $filename |

#

## Tags

todo |

### set_alignment()

    set_alignment( $alignment)

#### Parameters

| $alignment |

#

## Tags

todo |

### get_alignment()

    get_alignment()

#

## Tags

todo |

### set_font()

    set_font( $font)

#### Parameters

| $font |

#

## Tags

todo |

### set_text_size()

    set_text_size( $points)

#### Parameters

| $points |

#

## Tags

todo |

### set_text_angle()

    set_text_angle( $angle)

#### Parameters

| $angle |

#

## Tags

todo |

### set_text_color()

    set_text_color( $red,  $green,  $blue)

#### Parameters

| $red |
| $green |
| $blue |

#

## Tags

todo |

### set_background_color()

    set_background_color( $red,  $green,  $blue,  $transparent)

#### Parameters

| $red |
| $green |
| $blue |
| $transparent |

#

## Tags

todo |

### set_translucency()

    set_translucency( $num)

#### Parameters

| $num |

#

## Tags

todo |

### is_ready()

    is_ready()

#

## Tags

todo |

### create_watermark_rsrc()

    create_watermark_rsrc()

#

## Tags

todo |

### get_watermarked_image()

    get_watermarked_image( $srcfile)

#### Parameters

| $srcfile |

#

## Tags

todo |

### create_watermarked_image()

    create_watermarked_image( $srcfile,  $destfile)

#### Parameters

| $srcfile |
| $destfile |

#

## Tags

todo |

### _generateImageFromText()

    _generateImageFromText( $width,  $height)

#### Parameters

| $width |
| $height |

#

## Tags

todo |

### _loadFile()

    _loadFile( $filename,  $sizeinfo,  $istransparent)

#### Parameters

| $filename |
| $sizeinfo |
| $istransparent |

#

## Tags

todo |

### class.watermarker.php