Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GDI Renderer: Invalid ColorBlend Positions #172

Open
jack-gaojz opened this issue Feb 23, 2021 · 2 comments
Open

GDI Renderer: Invalid ColorBlend Positions #172

jack-gaojz opened this issue Feb 23, 2021 · 2 comments
Assignees

Comments

@jack-gaojz
Copy link

jack-gaojz commented Feb 23, 2021

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. :)

@paulushub paulushub changed the title Error message: 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 GDI Renderer: Invalid ColorBlend Positions Feb 23, 2021
@paulushub paulushub self-assigned this Feb 23, 2021
@jack-gaojz
Copy link
Author

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

@paulushub
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants