I have a graphics path composed from multiple circles that may overlap...
That graphics path I need it converted to a string and that string I whould
like to be as small as possible
Any ideeas?
--
Cheers,
Crirus
------------------------------
If work were a good thing, the boss would take it all from you
------------------------------ 16 1812
* "Crirus" <Cr****@datagroup.ro> scripsit: I have a graphics path composed from multiple circles that may overlap... That graphics path I need it converted to a string and that string I whould like to be as small as possible
String? I don't understand what you want to do. A 'GraphisPath' can
have a custom shape, how would you convert that to a "string"?!
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
That's the ideea... I need to send it over TCP to a client... so I need to
decompose the GraphicsPath to a sort of string thatc an be reconstructed as
GraphicsPath on the other side
--
Cheers,
Crirus
------------------------------
If work were a good thing, the boss would take it all from you
------------------------------
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:OA**************@TK2MSFTNGP10.phx.gbl... * "Crirus" <Cr****@datagroup.ro> scripsit: I have a graphics path composed from multiple circles that may
overlap... That graphics path I need it converted to a string and that string I
whould like to be as small as possible
String? I don't understand what you want to do. A 'GraphisPath' can have a custom shape, how would you convert that to a "string"?!
-- Herfried K. Wagner [MVP] <http://www.mvps.org/dotnet>
Hi,
The GraphicsPath.PathPoints returns an array of pointf. I guess you
convert that to a string. It wont be small.
Ken
----------------------
"Crirus" <Cr****@datagroup.ro> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... I have a graphics path composed from multiple circles that may overlap... That graphics path I need it converted to a string and that string I whould like to be as small as possible
Any ideeas?
-- Cheers, Crirus
------------------------------ If work were a good thing, the boss would take it all from you
------------------------------
Hi Crirus,
Have a look to the resx file
as a test.
Create a new project
Drop the imagelist on your form
Add an image to that imagelist
Open your solution explorer
Set the option show all files to true
Open the form1 root with the +
Open the resx file in your designer
Show it in XML view
You have a nice example how to transport your bitmaps.
Cor
Hi Crirus,
And for making such a file as that RESX is the XML dataset I think the most
easiest.
Cor
Yes, I can use that, and pathTypes too, but I'm trying to find a better way,
or at least to compress the string resulted somehow
--
Cheers,
Crirus
------------------------------
If work were a good thing, the boss would take it all from you
------------------------------
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:uS**************@TK2MSFTNGP09.phx.gbl... Hi,
The GraphicsPath.PathPoints returns an array of pointf. I guess
you convert that to a string. It wont be small.
Ken ---------------------- "Crirus" <Cr****@datagroup.ro> wrote in message news:%2****************@TK2MSFTNGP09.phx.gbl...I have a graphics path composed from multiple circles that may overlap... That graphics path I need it converted to a string and that string I whould like to be as small as possible
Any ideeas?
-- Cheers, Crirus
------------------------------ If work were a good thing, the boss would take it all from you
------------------------------
I noticed that pathPoints return points as floating.... ex: Y:=425,1854...
how much should I care about the numbes following the comma?
--
Cheers,
Crirus
------------------------------
If work were a good thing, the boss would take it all from you
------------------------------
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:uS**************@TK2MSFTNGP09.phx.gbl... Hi,
The GraphicsPath.PathPoints returns an array of pointf. I guess
you convert that to a string. It wont be small.
Ken ---------------------- "Crirus" <Cr****@datagroup.ro> wrote in message news:%2****************@TK2MSFTNGP09.phx.gbl...I have a graphics path composed from multiple circles that may overlap... That graphics path I need it converted to a string and that string I whould like to be as small as possible
Any ideeas?
-- Cheers, Crirus
------------------------------ If work were a good thing, the boss would take it all from you
------------------------------
* "Crirus" <Cr****@datagroup.ro> scripsit: That's the ideea... I need to send it over TCP to a client... so I need to decompose the GraphicsPath to a sort of string thatc an be reconstructed as GraphicsPath on the other side
Thanks -- now I understand what you want: You want a string
representation of the 'GraphicsPath'. Having a quick look at the
'GraphicsPath' class shows the properties 'PathData', 'PathPoints' and
'PathTypes'. Maybe looping though the collection and converting the
data to a string will be a good way to convert the 'PrapthicsPath' to a
string. You can use a 'StringBuilder' to create the text
representation.
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
:)
Cor, thanks, but I'm fighting with a GraphicsPath here not a image...
--
Cheers,
Crirus
------------------------------
If work were a good thing, the boss would take it all from you
------------------------------
"Cor" <no*@non.com> wrote in message
news:et**************@TK2MSFTNGP11.phx.gbl... Hi Crirus,
And for making such a file as that RESX is the XML dataset I think the
most easiest.
Cor
I told you I what was my expertice in graphics.
:-))
Cor Cor, thanks, but I'm fighting with a GraphicsPath here not a image...
* "Cor" <no*@non.com> scripsit: as a test. Create a new project Drop the imagelist on your form Add an image to that imagelist Open your solution explorer Set the option show all files to true Open the form1 root with the + Open the resx file in your designer Show it in XML view You have a nice example how to transport your bitmaps.
Mhm... I think Crirus wants to transport a 'GraphicsPath'.
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
I told you I what was my expertice in graphics.
:-))
Cor
:)
--
Cheers,
Crirus
------------------------------
If work were a good thing, the boss would take it all from you
------------------------------
"Cor" <no*@non.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl... I told you I what was my expertice in graphics.
:-))
Cor
Cor, thanks, but I'm fighting with a GraphicsPath here not a image...
* "Cor" <no*@non.com> scripsit: I told you I what was my expertice in graphics.
:-)))
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
* "Cor" <no*@non.com> scripsit: I told you I what was my expertice in graphics.
I know...
:-)
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:OJ**************@TK2MSFTNGP09.phx.gbl... * "Crirus" <Cr****@datagroup.ro> scripsit: That's the ideea... I need to send it over TCP to a client... so I need to decompose the GraphicsPath to a sort of string thatc an be reconstructed as GraphicsPath on the other side
Thanks -- now I understand what you want: You want a string representation of the 'GraphicsPath'. Having a quick look at the 'GraphicsPath' class shows the properties 'PathData', 'PathPoints' and 'PathTypes'. Maybe looping though the collection and converting the data to a string will be a good way to convert the 'PrapthicsPath' to a string. You can use a 'StringBuilder' to create the text representation.
-- Herfried K. Wagner [MVP] <http://www.mvps.org/dotnet>
Best way to do this would pound Microsoft and make this object serializable
**grin**...
Other way to do it would loop through the all properties, property arrays, et
cetera and store only those values which are not default values. This would keep
the resulting string value minimal. Then compress this using a string compresser
before sending the data.
Mythran
(probably already knew all this anyways) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Altramagnus |
last post by:
I have a complicated Region object, which I need to draw the outline, but
not fill
How can I convert the Region object to GraphicsPath object?
or How can I draw the outline of the Region object?
|
by: jay |
last post by:
I have a bitmap and a graphicspath object. I draw pixels on m_Bitmap and I'm
drawing text using m_Graphics GraphicsPath object.
However, saving my work with m_Bitmap.Save doesn't save...
|
by: Pavel |
last post by:
Hello.
I am trying to make a folder compressed and failing miserably. Below
are three ways that I tried to make it compressed, all of them compile
and run w/o any problems, but the folder is...
|
by: Crirus |
last post by:
Hello
I need to save as a string a graphicPath instance...there is a way of doing
this?
Crirus
|
by: Crirus |
last post by:
Hi
Is that true that this IsVisible method is incredible slow?
Seems that my app is much slower with only this added as a condition to draw
something
Crirus
|
by: Martijn Mulder |
last post by:
/*
GraphicsPath.IsVisible() gives unexpected results. I fill a
System.Drawing.Drawing2D.GraphicsPath-object with PointF-structures
that define the unit-square (0,0), (1,0), (1,1) and (0,1). Then I...
|
by: Bob Altman |
last post by:
Hi all,
I'm looking for the fastest way to convert an array of bytes to String. I
also need to convert a String back to its original Byte() representation.
Convert.ToBase64String and...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |