70000591 I would like to import big images in the library without losing in quality

Article 70000591
Type Wish
Product WebJS
Version 7005
Date Added 10/8/2015 12:00:00 AM
Fixed 7.7006.0.4 (10/8/2015 12:00:00 AM)
Submitted by Ilan Sandor

Summary

I would like to import big images in the library without losing in quality.

Solution

Previously all image bitmaps in the web library could be at maximum 552960 pixels (768 * 720). In this version a new property has been created where the maximum bitmap size can be set to a different value.

MaxImageSize controls the maximum possible value of an image's bitmap. Default value is 552960 (a resolution of 768 * 720);

Example


vdmanager.AttachCanvas('canvas', 380, 480);
vdcanvas = vdmanager.vdrawObject('canvas');
vdcanvas.MaxImageSize = 1000*1000;

Also a new parameter can be added in the ExportScript() function of the vdDocument. Using this the exported VDS files will use a custom export image max size instead of the default (768 * 720).

Example

VectorDraw.Professional.vdObjects.vdDocument doc1 = vdFramedControl1.BaseControl.ActiveDocument;

string[] s = new string[] { "-licval goes here", "-you can add as many licvals as you like for each file-" }; //Remove the dashes.
vdPrimariesList prims = new vdPrimariesList();
object[] p = new object[] { null, null, null, null, null, 1024*1024 }; //All paremeters set to null will use the default values.
doc1.ExportScript(@"C:\test.vds", s, p);


Send comments on this topic.