Click here to Skip to main content
15,911,890 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: How to shift a bitmap efficiently (Spectrogram Application) Pin
bimbambumbum19-Sep-10 17:32
bimbambumbum19-Sep-10 17:32 
AnswerRe: How to shift a bitmap efficiently (Spectrogram Application) Pin
Luc Pattyn19-Sep-10 17:48
sitebuilderLuc Pattyn19-Sep-10 17:48 
GeneralRe: How to shift a bitmap efficiently (Spectrogram Application) Pin
bimbambumbum19-Sep-10 17:57
bimbambumbum19-Sep-10 17:57 
AnswerRe: How to shift a bitmap efficiently (day 2) [modified] Pin
Luc Pattyn20-Sep-10 16:14
sitebuilderLuc Pattyn20-Sep-10 16:14 
GeneralRe: How to shift a bitmap efficiently (day 2) [modified] Pin
bimbambumbum20-Sep-10 17:54
bimbambumbum20-Sep-10 17:54 
GeneralRe: How to shift a bitmap efficiently (day 2) Pin
Luc Pattyn20-Sep-10 18:09
sitebuilderLuc Pattyn20-Sep-10 18:09 
GeneralRe: How to shift a bitmap efficiently (day 2) Pin
bimbambumbum21-Sep-10 11:23
bimbambumbum21-Sep-10 11:23 
GeneralRe: How to shift a bitmap efficiently (day 2) [modified] Pin
Luc Pattyn21-Sep-10 11:41
sitebuilderLuc Pattyn21-Sep-10 11:41 
Hi,

I did not run your code, I have some comments just by looking at it:

1.
you paint onto your Form, I always avoid that. I prefer adding a Panel to the Form, then painting to the Panel. Make the Panel the exact size of the plot, and make the Panel double-buffered, not the entire Form.
ADDED
and only repaint (i.e. Invalidate or Refresh) the panel.
/ADDED

2.
I see you modify your data inside OnPaint; one should not do that, as OnPaint may be called by the system whenever it feels a need (e.g. when an unrelated window gets shown, then disappears, uncovering your window).

3.
you should use a local variable to store the value of myBitmap.Height, and not call any unnecessary property inside a loop; it will typically not be optimized away!

4.
bimbambumbum wrote:
opdater grafik 50 /sekund!!!

?

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


modified on Tuesday, September 21, 2010 5:58 PM

GeneralRe: How to shift a bitmap efficiently (day 2) Pin
bimbambumbum21-Sep-10 11:45
bimbambumbum21-Sep-10 11:45 
AnswerRe: How to shift a bitmap efficiently (day 2) Pin
Luc Pattyn20-Sep-10 18:29
sitebuilderLuc Pattyn20-Sep-10 18:29 
GeneralRe: How to shift a bitmap efficiently (day 2) Pin
bimbambumbum22-Sep-10 13:01
bimbambumbum22-Sep-10 13:01 
GeneralRe: How to shift a bitmap efficiently (day 3) Pin
Luc Pattyn22-Sep-10 13:06
sitebuilderLuc Pattyn22-Sep-10 13:06 
QuestionDataBinding-aware (dependency)objects? Pin
Don Rolando19-Sep-10 3:32
Don Rolando19-Sep-10 3:32 
Questionpicturebox.visible problem Pin
bimbambumbum18-Sep-10 15:36
bimbambumbum18-Sep-10 15:36 
AnswerRe: picturebox.visible problem Pin
bimbambumbum18-Sep-10 15:42
bimbambumbum18-Sep-10 15:42 
GeneralRe: picturebox.visible problem Pin
DaveyM6918-Sep-10 20:29
professionalDaveyM6918-Sep-10 20:29 
AnswerRe: picturebox.visible problem Pin
Luc Pattyn19-Sep-10 3:44
sitebuilderLuc Pattyn19-Sep-10 3:44 
QuestionChoice of .NET Framework version Pin
fdsfsa76f7sa615-Sep-10 21:31
fdsfsa76f7sa615-Sep-10 21:31 
AnswerRe: Choice of .NET Framework version Pin
Kubajzz16-Sep-10 0:16
Kubajzz16-Sep-10 0:16 
AnswerRe: Choice of .NET Framework version Pin
Pete O'Hanlon16-Sep-10 1:28
mvePete O'Hanlon16-Sep-10 1:28 
AnswerRe: Choice of .NET Framework version Pin
The Man from U.N.C.L.E.20-Sep-10 12:06
The Man from U.N.C.L.E.20-Sep-10 12:06 
QuestionProblem adding FFTW.dll as reference. [modified] Pin
bimbambumbum15-Sep-10 14:54
bimbambumbum15-Sep-10 14:54 
AnswerRe: Problem adding FFTW.dll as reference Pin
Luc Pattyn15-Sep-10 16:13
sitebuilderLuc Pattyn15-Sep-10 16:13 
GeneralRe: Problem adding FFTW.dll as reference Pin
bimbambumbum18-Sep-10 15:31
bimbambumbum18-Sep-10 15:31 
QuestionTyped Datasets and SSIS Pin
indian14315-Sep-10 7:12
indian14315-Sep-10 7:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.