mohab1989 / SVG_Viewer

C# WPF Application Written In MVVM Design Pattern, Reads SVG Files, Recolor Paths With Mouse Click From An Advanced ColorPicker
9 stars 6 forks source link

NEED TO CREATE SVG PATTERN EDITOR #1

Open Chintangandhi007 opened 7 years ago

Chintangandhi007 commented 7 years ago

Hi, Great svg viewer..

do you think to expand...

I just need to fill color, add image (png,jpeg,bmp,tiff,svg ) in svg files.

I here attach the svg files which i need to view.

Currently it shows only paths but i need to see each & every component .

mohab1989 commented 7 years ago

Hi, Thanks man, unfortunately i am not working on this project anymore,but ill be more than happy to merge your fixes and added features. the viewer was made for and tested with a group of svg files so i know that other SVGS might not work, i cant see the attached file you mentioned but i guess the problem might lie in two positions in the code and your welcome to commit you fixes first: in MainViewModel.cs file line number 129 string GXpath = "/global:svg/global:g"; if the pathes is not insode section and its on svg directly you should replace the line with string GXpath = "/global:svg"; Second: in Style_Parser.cs line 38 return (Color)ColorConverter.ConvertFromString(colorString); some svg use style like : style="fill: rgb(72, 207, 244);" but the color converter expects the style to be written in this format style="fill: Red;"

You are very welcome to add support for different kind of SVG files and ill be happy to accept your pull request

Do note that when using the correct svg file the viewer actually gives you control of filling every path in the svg file as you said.

Chintangandhi007 commented 7 years ago

Hi,

Thanking for your reply..

Chintangandhi007 commented 7 years ago

Hi,

But still need your help because I m just the beginner with the SVG and WPF.

I just send you the file.

Please help me little bit, Like create the another only one Circle Model and Viewmodel for one property then i will create it for all the other one and also Color is having HEX code with ARGB (e.g. #00FFFFFF).

Please please need the little bit help then i will go further.

@mohab1989 I am very thankful to you if you are helping me for only one model

mohab1989 commented 7 years ago

i would try to help but i have no idea where is that file you sent me ? where exactly did you send this file ?

Chintangandhi007 commented 7 years ago

Yeah, I attached Svg files with extension as Text files. please change the extension to svg.

circles-pattern.txt painter-palette.txt pattern (1).txt pattern.txt rangoli.txt support.txt

@mohab1989 pattern (1).txt to pattern (1).svg and load svg in SVG_Viewer it loaded only path. it will not load circles and i need to Change color and also svg image to fill in specified path.

please help me ASAP..

Thank you for your kind help.

Chintangandhi007 commented 7 years ago

@mohab1989 Please help me. I really need your help urgently.

Chintangandhi007 commented 7 years ago

@mohab1989 in pathmodel.cs what is the use of tag object.