473,387 Members | 1,592 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

GraphicsPath performance problems advice needed

I am using Graphics path in my application and i have located the slow
areas in my rogram and it seems that the graphics path consistently is
slow when doing any operation like adding another graphics path, adding
text etc......and also drawing the Graphics path onto the drawing
surface using the Graphics class is also slow. Am i doing something
wrong or is this the fault of GDI+ which i have heard was slow?.....is
this a correct assumption...

*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #1
2 3434
Hi James,

Try to use, properties of the Graphics:

CompositingQuality (HighSpeed)
InterpolationMode (Low or NearestNeighbor)
SmoothingMode (HighSpeed)

I'm not sure which of them works with GraphicsPath, but i don't
know any better solution.

Do you draw those paths on "Paint" event or do you prepare a Bitmap
and then draw it?

HTH
Marcin
I am using Graphics path in my application and i have located the slow
areas in my rogram and it seems that the graphics path consistently is
slow when doing any operation like adding another graphics path, adding
text etc......and also drawing the Graphics path onto the drawing
surface using the Graphics class is also slow. Am i doing something
wrong or is this the fault of GDI+ which i have heard was slow?.....is
this a correct assumption...

*** Sent via Developersdex http://www.developersdex.com ***

Nov 17 '05 #2
Marcin,
I know that the paint method is important as if its overused then it
will redraw too many times and slow the application down. Well i have
checked that but no in fact it is drawing a textbox that is very slow
and any time a string is added to the graphics path or the graphics path
gets drawn then it slows it down. I actually ran devpartner on the code
and it told me that my slowest lines were what i have mentioned
above...but really not sure how i can make it faster....

*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Fred | last post by:
Has anyone a link or any information comparing c and c++ as far as execution speed is concerned? Signal Processing algorithms would be welcome... Thanks Fred
11
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?
6
by: Altramagnus | last post by:
I have n number of circles. Some of them might overlap. I need to draw the outline of all circles but not those overlap areas. Initially, I am try to use a Region, because a Region object has a...
2
by: Brian | last post by:
NOTE ALSO POSTED IN microsoft.public.dotnet.framework.aspnet.buildingcontrols I have solved most of my Server Control Collection property issues. I wrote an HTML page that describes all of the...
3
by: Crirus | last post by:
Hello I need to save as a string a graphicPath instance...there is a way of doing this? Crirus
7
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
6
by: Pascal Polleunus | last post by:
Hi, I'm wondering if there could be problems related to inheritance in the following scenario (with PostgreSQL 7.4.1)... 1 A-table, abstract. Max 10 B-tables that inherit from A, with...
37
by: jortizclaver | last post by:
Hi, I'm about to develop a new framework for my corporative applications and my first decision point is what kind of strings to use: std::string or classical C char*. Performance in my system...
5
by: Markus Ernst | last post by:
Hello A class that composes the output of shop-related data gets some info from the main shop class. Now I wonder whether it is faster to store the info in the output class or get it from the...
0
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$) { } ...
0
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...
0
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.