Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

ColorSlider not working in Accord.Controls #604

Closed
perezale opened this issue May 18, 2017 · 1 comment
Closed

ColorSlider not working in Accord.Controls #604

perezale opened this issue May 18, 2017 · 1 comment

Comments

@perezale
Copy link
Contributor

Hi everyone!

Maybe someone could help us out.

When dragging the ColorSlider to an empty Form, it produces the next error:

"System.ArgumentException" in System.Drawing.dll , Null is not valid for stream.

Following the code, the problem is at this line:

Assembly assembly = this.GetType().Assembly;
arrow = new Bitmap(assembly.GetManifestResourceStream("Accord.Controls.Resources.arrow.bmp"));

Browsing Accord.Controls.dll at the Assembly Explorer we couldn't find the arrow.bmp. And through the repository we found it at framework/Sources/Accord.Controls.Imaging/AForge/Resources
We believe the namespace is wrong because the path is not matching with the actual folder structure.

is there any workaround or are we doing something wrong?

Thanks in advance.

@cesarsouza
Copy link
Member

Hi @perezale,

Many thanks for reporting the issue and identifying the fix. Please let me know if you find any other issues while importing other controls!

I will try to commit a fix in the next minutes.

Regards,
Cesar

cesarsouza added a commit that referenced this issue May 21, 2017
GH-604: ColorSlider component resource path's fix.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants