Click here to Skip to main content
15,890,506 members
Home / Discussions / C#
   

C#

 
AnswerRe: face recognition Pin
Le centriste26-Jan-06 2:00
Le centriste26-Jan-06 2:00 
GeneralRe: face recognition Pin
maf3os26-Jan-06 3:52
maf3os26-Jan-06 3:52 
GeneralRe: face recognition Pin
Le centriste26-Jan-06 3:57
Le centriste26-Jan-06 3:57 
GeneralRe: face recognition Pin
maf3os26-Jan-06 14:18
maf3os26-Jan-06 14:18 
QuestionIterate through object properties Pin
Leo Smith25-Jan-06 11:39
Leo Smith25-Jan-06 11:39 
AnswerRe: Iterate through object properties Pin
[Marc]25-Jan-06 12:15
[Marc]25-Jan-06 12:15 
GeneralRe: Iterate through object properties Pin
Leo Smith25-Jan-06 15:51
Leo Smith25-Jan-06 15:51 
QuestionGraphics.DrawImage - why it's so slow? Pin
Libor Tinka25-Jan-06 11:26
Libor Tinka25-Jan-06 11:26 
I have some image preview control based on a Panel which remembers current preview image position. Its OnPaint method does nothing except drawing viewed part of the image using this DrawImage override:

Graphics.DrawImage(Image, Rectangle, Rectangle, GraphicsUnit)

This draws only desired part of an image. The preview control is very small, so the whole painting should be fast, but it isn't.

Drawing 50x50 px rectangular part from one image to second - for some unknown reason - depends on the size of the source image Confused | :confused: When this method draws little rectangle from 7 Mpx image, it tooks about 200 ms - that's not real-time, when image is moved and the control is repeatedly invalidated.

I saw similar preview controls, where the scrolling of image were smooth and doesn't depend on image size. These controls were part of the MFC apps. Then I tried professional .NET component for image previews, which was also slow. I'm confused - why can't this simple task be quick?

I spent a life solving this problem, so answer would be appreciated.
AnswerRe: Graphics.DrawImage - why it's so slow? Pin
[Marc]25-Jan-06 12:13
[Marc]25-Jan-06 12:13 
AnswerRe: Graphics.DrawImage - why it's so slow? Pin
Dave Kreskowiak25-Jan-06 16:11
mveDave Kreskowiak25-Jan-06 16:11 
GeneralRe: Graphics.DrawImage - why it's so slow? Pin
Libor Tinka26-Jan-06 2:05
Libor Tinka26-Jan-06 2:05 
GeneralRe: Graphics.DrawImage - why it's so slow? Pin
Dan Neely26-Jan-06 3:34
Dan Neely26-Jan-06 3:34 
Questionrunning out of PTEs Pin
Mark Hahn CA25-Jan-06 9:14
Mark Hahn CA25-Jan-06 9:14 
AnswerRe: running out of PTEs Pin
Dave Kreskowiak25-Jan-06 15:59
mveDave Kreskowiak25-Jan-06 15:59 
GeneralRe: running out of PTEs Pin
Mark Hahn CA26-Jan-06 8:05
Mark Hahn CA26-Jan-06 8:05 
GeneralRe: running out of PTEs Pin
Dave Kreskowiak26-Jan-06 14:37
mveDave Kreskowiak26-Jan-06 14:37 
QuestionHow to get valid IPs from an IP Range? Pin
bigmacrox25-Jan-06 8:45
bigmacrox25-Jan-06 8:45 
AnswerRe: How to get valid IPs from an IP Range? Pin
tylerl25-Jan-06 9:05
tylerl25-Jan-06 9:05 
GeneralRe: How to get valid IPs from an IP Range? Pin
bigmacrox25-Jan-06 9:17
bigmacrox25-Jan-06 9:17 
GeneralRe: How to get valid IPs from an IP Range? Pin
Mike Dimmick25-Jan-06 10:42
Mike Dimmick25-Jan-06 10:42 
Questiontuples Pin
JoeSox25-Jan-06 7:17
JoeSox25-Jan-06 7:17 
AnswerRe: tuples Pin
User 665825-Jan-06 8:03
User 665825-Jan-06 8:03 
GeneralRe: tuples Pin
JoeSox25-Jan-06 8:10
JoeSox25-Jan-06 8:10 
GeneralRe: tuples Pin
User 665825-Jan-06 8:18
User 665825-Jan-06 8:18 
GeneralRe: tuples Pin
JoeSox25-Jan-06 8:28
JoeSox25-Jan-06 8:28 

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.