SharpVectors icon indicating copy to clipboard operation
SharpVectors copied to clipboard

GDI Renderer: Invalid ColorBlend Positions

Open jack-gaojz opened this issue 4 years ago • 2 comments

When I use the plugin to render the svc document file, there is an error message happened as below:

_renderer = new GdiGraphicsRenderer() { BackColor = Color.White };
_window = new SvgPictureBoxWindow(DefaultWindowWidth, DefaultWindowHeight, _renderer);
_document = new SvgDocument(_window);

image

ColorBlend object that was set is not valid.Position's last element must be equal to 1.0. ColorBlend objects must be constructed with the same number of positions and color values. Positions must be between 0.0 and 1.0, 1.0 indicating the last element in the array.

The SVG file as below: compuserver_msn_Ford_Focus.zip

The SharpVectors version: 1.7.1 .Net framework: 4.7 IIS Server: 10.0.18362.1

Does anyone have this issue? Thanks so much. :)

jack-gaojz avatar Feb 23 '21 03:02 jack-gaojz

@paulushub Do you have any plan to fix it? Thank you so much. :)

jack-gaojz avatar Mar 08 '21 09:03 jack-gaojz

Yes, it is a pending issue #37. Some have submitted codes to fix parts of the issue, but it is not fully resolved yet.

paulushub avatar Mar 08 '21 10:03 paulushub