because everybody is after the bug of the century !!!!!
http://superuser.com/questions/940861/how-can-i-display-a-url-as-an-image-in-an-excel-cell
http://superuser.com/questions/940861/how-can-i-display-a-url-as-an-image-in-an-excel-cell
G-series 1 Block Diagram |
var WebPImage = { width:{value:0},height:{value:0} }
var decoder = new WebPDecoder();
var bitmap = decoder.WebPDecodeRGB(data, data.length, WebPImage.width, WebPImage.height);
//or
var bitmap = decoder.WebPDecodeRGBA(data, data.length, WebPImage.width, WebPImage.height);
//read width/height
var width = WebPImage.width.value;
var height = WebPImage.height.value;
var out={output:''}; //rgba data
var encoder = new WebPEncoder();
[config code]
//set config; default config -> WebPEncodeConfig( null )
encoder.WebPEncodeConfig(config); //when you set the config you must it do for every WebPEncode... new
//start encoding
var size = encoder.WebPEncodeRGB(inputData, w, h, w*3, qualityVal, out); //w*4 desc: w = width, 3:RGB/BGR, 4:RGBA/BGRA
// or
var size = encoder.WebPEncodeRGBA(inputData, w, h, w*4, qualityVal, out); //w*4 desc: w = width, 3:RGB/BGR, 4:RGBA/BGRA
//after encoding, you can get the enc-details:
str = encoder.ReturnExtraInfo();
//output (array of bytes)
var output = out.output;
//config, you can set all arguments or what you need
config = new Object()
config.target_size = 0; // if non-zero, set the desired target size in bytes. Takes precedence over the 'compression' parameter.
config.target_PSNR = 0.; // if non-zero, specifies the minimal distortion to try to achieve. Takes precedence over target_size.
config.method = method; // quality/speed trade-off (0=fast, 6=slower-better)
config.sns_strength = 50; // Spatial Noise Shaping. 0=off, 100=maximum.
config.filter_strength = 20; // range: [0 = off .. 100 = strongest]
config.filter_sharpness = 0; // range: [0 = off .. 7 = least sharp]
config.filter_type = 1; // filtering type: 0 = simple, 1 = strong (only used if filter_strength > 0 or autofilter > 0)
config.partitions = 0; // log2(number of token partitions) in [0..3] Default is set to 0 for easier progressive decoding.
config.segments = 4; // maximum number of segments to use, in [1..4]
config.pass = 1; // number of entropy-analysis passes (in [1..10]).
config.show_compressed = 0; // if true, export the compressed picture back. In-loop filtering is not applied.
config.preprocessing = 0; // preprocessing filter (0=none, 1=segment-smooth)
config.autofilter = 0; // Auto adjust filter's strength [0 = off, 1 = on]
// --- description from libwebp-C-Source Code ---
config.extra_info_type = 0; // print extra_info
config.preset = 0 //0: default, 1: picture, 2: photo, 3: drawing, 4: icon, 5: text
Applix Presents 4.3, 4.4 |
Microsoft PowerPoint 97, 2000, 2002 (PPT) |
Applix Spreadsheets 4.3, 4.4 |
Microsoft Windows Metafile (WMF) |
Applix Words 4.3, 4.4 |
Microsoft Word for Macintosh 98 |
Bitmap (BMP) |
Microsoft Word for Windows 97, Office 2000, 2002 (DOC) |
CCITT Group 3 Fax (TIF) |
Microsoft Works 1, 2, 3, 4 |
CompuServe (GIF) |
Windows Video (AVI) |
Computer Graphics Metafile (CGM) |
Paintbrush/DCX (multi-page PCX) (PCX) |
Encapsulated Postscript (TIFF header only) |
PICT and PICT2 Graphics (PCT) |
Executable file (EXE) |
Quicktime Movie (MOV) |
Graphic Interchange Format (GIF) |
Revisable Form Text (RFT) |
HTML (HTM) |
Rich Text Format (RTF) |
JPEG file (JPEG, JPG) |
Tagged Image File Format (TIF) |
IBM Lotus 1-2-3 97 and 98, R9 (.wk4, 123) |
Text file (TXT) |
Lotus Freelance 97, R9 (PRE, PRZ) |
WordPerfect 5.x, 6.x, 7.x, 8.x |
Lotus PIC (PIC) |
WordPerfect Graphics (WPG) |
Lotus WordPro® 96/97, R9 (LWP) |
XyWrite |
Microsoft® Excel for Windows® 97, Office 2000, 2002 (XLS) |
ZIP file (ZIP) |
Microsoft Excel for Macintosh 98 |