473,326 Members | 2,095 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,326 software developers and data experts.

Slow draw speeds

Hi all;

I have a windows desktop application in which I have set as a background
image, a graphic that I whipped up. Its nothing fancey, just some gradient
colors, shadows, glow, that sort of stuff. I have tried different formats,
jpg, png, gif, bmp, and with every one, when the application starts, and when
I focus to a different window, then come back to the main one, it seems to
redraw the screen slowly. Each control will flash on the screen, total time
is maybe 1 second as all the controls flash. If I put regular system colors
back in, there is no issue. Is there anything I can do to speed this up? the
graphic files are not that big, 9 KB for the jpg image, 6 for the GIF. The
BMP is large, but it doesnt seem to make a difference which one I use, the
results are the same.

Thanks

I should note that the backgrounds are set on group boxes, and on a few
buttons.
May 8 '07 #1
2 2816
Rahvyn,

How are you drawing the background image? Are you loading the image in
each call to OnPaint, or have you loaded the image previously? Are you
double-buffering as well when drawing the image? These are the two things I
would look at first.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Rahvyn" <Ra****@discussions.microsoft.comwrote in message
news:09**********************************@microsof t.com...
Hi all;

I have a windows desktop application in which I have set as a background
image, a graphic that I whipped up. Its nothing fancey, just some gradient
colors, shadows, glow, that sort of stuff. I have tried different formats,
jpg, png, gif, bmp, and with every one, when the application starts, and
when
I focus to a different window, then come back to the main one, it seems to
redraw the screen slowly. Each control will flash on the screen, total
time
is maybe 1 second as all the controls flash. If I put regular system
colors
back in, there is no issue. Is there anything I can do to speed this up?
the
graphic files are not that big, 9 KB for the jpg image, 6 for the GIF. The
BMP is large, but it doesnt seem to make a difference which one I use, the
results are the same.

Thanks

I should note that the backgrounds are set on group boxes, and on a few
buttons.

May 9 '07 #2
I actually set the background during design. I am not using the OnPaint
event at all, nor doing anything with the image during runtime. It looks
like each control has to redraw itself everytime the window is uncovered,
meaning when I put a window in front of it, and then pull the main one up
again.

"Nicholas Paldino [.NET/C# MVP]" wrote:
Rahvyn,

How are you drawing the background image? Are you loading the image in
each call to OnPaint, or have you loaded the image previously? Are you
double-buffering as well when drawing the image? These are the two things I
would look at first.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Rahvyn" <Ra****@discussions.microsoft.comwrote in message
news:09**********************************@microsof t.com...
Hi all;

I have a windows desktop application in which I have set as a background
image, a graphic that I whipped up. Its nothing fancey, just some gradient
colors, shadows, glow, that sort of stuff. I have tried different formats,
jpg, png, gif, bmp, and with every one, when the application starts, and
when
I focus to a different window, then come back to the main one, it seems to
redraw the screen slowly. Each control will flash on the screen, total
time
is maybe 1 second as all the controls flash. If I put regular system
colors
back in, there is no issue. Is there anything I can do to speed this up?
the
graphic files are not that big, 9 KB for the jpg image, 6 for the GIF. The
BMP is large, but it doesnt seem to make a difference which one I use, the
results are the same.

Thanks

I should note that the backgrounds are set on group boxes, and on a few
buttons.


May 9 '07 #3

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

Similar topics

5
by: Shay | last post by:
essentially I am trying to do some counts based on some assumptions in the recordset. So I get the RS back, put the values into a variable, move to the next record in the RS and compare what is in...
0
by: F. Hall | last post by:
If I read a bitmap image from one file and save it to another the save operation is slow unless I draw on the image. In other words, Image inputImage = Image.FromFile( @"c:\temp\source.bmp" );...
22
by: Marc Mones | last post by:
Hello, I'working with IBM DB2 V8.1 and CLI/ODBC. I've got a problem with the following statement: ******************************************************************************** SELECT...
2
by: Steve Hall | last post by:
Dear All We have a SQL Server 2000 BE on a Win 2K Server box. Access 2000 clients, running on Win 2000 Pro. Front end design is fairly straight forward - 5 different "record types" (split...
7
by: Shaji | last post by:
Dear All, I am using VS.Net (and most of you, of course) for a quite long period for web development for medium to large development tasks. My humble opinion is vs.net is eating up a lot of...
1
by: Bruce Hodge | last post by:
Hi, We have multiple copies of an application running on 2003 server hosted on the Internet. Each has it's own SQL database, each has it's own Website and URL. So in processing terms they are...
6
by: B B | last post by:
Okay, here is what's happening: I have a reasonably fast laptop (1.4 GHz Mobile M, so comparable to 2.5GHz P4) doing .net development. Running Windows XP pro, SP2 IIS is installed and running...
4
by: Andrew Jackson | last post by:
I am writing a newsgroup client. I have the protocol figured out. But I get slow transfer speeds off any of the network objects read the data from For example one of the commands for a news...
3
natalie99
by: natalie99 | last post by:
Hello I need a very simple question answered if anyone could please help :) After moving office locations, our shared network connection (attached to old building where employees still use the...
4
Niheel
by: Niheel | last post by:
http://bytes.com/images/howtos/technologies_cut_cost_slow_economy.jpgThere's no escaping the slowing economy. Layoffs are being announced and companies are in cost cutting mode. Whether you are a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
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...
0
isladogs
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 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.