$dir_resource,
'tt.zip' => 'tt_def.zip',
'res.zip' => 'res.zip',
'MAYSCRIPT' => 'true',
'scriptable' => 'true',
'tools' => $pro_version ? 'pro' : '',
'layer_count' => '5',
'undo' => '90',
'undo_in_mg' => '15',
'image_width' => $this->canvas_width,
'image_height' => $this->canvas_height,
'image_canvas' => $this->load_image_url,
'pch_file' => $this->load_animation_url,
'color_bk' => $this->applet_bg_color,
'color_bk2' => $this->applet_bg_grid_color,
'color_text' => $this->applet_dialog_text_color,
'window_color_bk' => $this->applet_dialog_bg_color,
'window_color_text' => $this->applet_dialog_text_color,
'window_color_frame' => $this->applet_dialog_border_color,
'window_color_bar' => $this->applet_dialog_title_bg_color,
'window_color_bar_hl' => $this->applet_dialog_title_hl_color,
'window_color_bar_text' => $this->applet_dialog_title_text_color,
'url_save' => html_entity_decode($this->url_save),
'url_exit' => html_entity_decode($this->url_finish),
'url_target' => $this->url_target,
'poo' => 'false',
'send_advance' => 'true',
'send_language' => 'utf8',
'send_header' => '',
'send_header_image_type' => 'false',
'thumbnail_type' => $this->animation ? 'animation' : '',
'image_jpeg' => $this->default_format == 'jpg' ? 'true' : 'false',
'image_size' => '92',
'compress_level' => '4',
);
$params = array_merge( $base_params, $extra_params );
$output .= '';
return $output;
}
function paintbbs( $jar_path, $dir_resource, $extra_params = array() )
{
$output = '';
$base_params = array(
'dir_resource' => $dir_resource,
'undo' => '90',
'undo_in_mg' => '15',
'image_width' => $this->canvas_width,
'image_height' => $this->canvas_height,
'image_canvas' => $this->load_animation_url ? $this->load_animation_url : $this->load_image_url,
'color_bk' => $this->applet_bg_color,
'color_bk2' => $this->applet_bg_grid_color,
'color_text' => $this->applet_dialog_text_color,
'window_color_bk' => $this->applet_dialog_bg_color,
'window_color_text' => $this->applet_dialog_text_color,
'window_color_frame' => $this->applet_dialog_border_color,
'window_color_bar' => $this->applet_dialog_title_bg_color,
'window_color_bar_hl' => $this->applet_dialog_title_hl_color,
'window_color_bar_text' => $this->applet_dialog_title_text_color,
'url_save' => $this->url_save,
'url_exit' => $this->url_finish,
'url_target' => $this->url_target,
'poo' => 'false',
'send_advance' => 'true',
'send_language' => 'utf8',
'send_header' => '',
'send_header_image_type' => 'false',
'thumbnail_type' => $this->animation ? 'animation' : '',
'image_jpeg' => $this->default_format == 'jpg' ? 'true' : 'false',
'image_size' => '92',
'compress_level' => '4',
);
$params = array_merge( $base_params, $extra_params );
$output .= '';
return $output;
}
function oekakibbs( $jar_path, $extra_params = array() )
{
$output = '';
$base_params = array(
'readfilepath' => './',
'readpicpath' => './',
'readanmpath' => './',
'picw' => $this->canvas_width,
'pich' => $this->canvas_height,
'readpic' => $this->load_image_url,
'readanm' => $this->load_animation_url,
'backC' => str_replace( '#', '', $this->applet_bg_color ),
'baseC' => str_replace( '#', '', $this->applet_dialog_bg_color ),
'brightC' => str_replace( '#', '', $this->applet_dialog_border_hl_color ),
'darkC' => str_replace( '#', '', $this->applet_dialog_border_dl_color ),
'cgi' => $this->url_save,
'url' => $this->url_finish,
'target' => $this->url_target,
'popup' => '0',
'tooltype' => 'full',
'anime' => $this->animation ? '1' : '0',
'animesimple' => '1',
'tooljpgpng' => '0',
'tooljpg' => '1',
'passwd' => '',
'passwd2' => '',
'mask' => '5',
'toolpaintmode' => '1',
'toolmask' => '1',
'toollayer' => '1',
'toolalpha' => '1',
'toolwidth' => '200',
'catalog' => '0',
'catalogwidth' => '100',
'catalogheight' => '100',
);
$params = array_merge( $base_params, $extra_params );
$output .= '';
return $output;
}
}
?>