dvisual | A visualization toolkit based on html 's canvas | Canvas library
kandi X-RAY | dvisual Summary
kandi X-RAY | dvisual Summary
dvisual is a visualization toolkit based on html’s canvas and Javascript. . How to use DVisual === [The Tutorial] . . . . . .
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of dvisual
dvisual Key Features
dvisual Examples and Code Snippets
Community Discussions
Trending Discussions on dvisual
QUESTION
I am new to C# and to WPF, and I could be looking at this completely wrong. I have a JPEG byte array as a source. I cannot change this. I need to get the array, perform some calculations and draw rectangles in areas of the JPEG. I then write it to an Image XAML control.
I get the JPEG and I can convert it into an ImageSource
and display it to an ImageControl
. I can't find a way to get the drawing context from the ImageSource
. I use ImageSourceConverter
to read in the JPEG array and this class returns an ImageSource
instance, duh!.
ANSWER
Answered 2017-Feb-20 at 00:57Have you looked at using Visuals, I don't know how efficient they are but it seems that you will be unable to copy the source into an ImageSource and draw directly into it.
Create a DrawingVisual and draw the ImageSource and the Rectangles into the drawing context of the drawing visual.
Then use WriteableBitmap to show it in the image;
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install dvisual
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page