Click here to Skip to main content
15,929,597 members
Home / Discussions / C#
   

C#

 
GeneralRe: Color Creation Pin
Libor Tinka27-Jul-05 9:15
Libor Tinka27-Jul-05 9:15 
GeneralScrolling with bitmap Pin
Yigal Agam27-Jul-05 8:45
Yigal Agam27-Jul-05 8:45 
GeneralRe: Scrolling with bitmap Pin
Libor Tinka27-Jul-05 9:19
Libor Tinka27-Jul-05 9:19 
GeneralRe: Scrolling with bitmap Pin
Yigal Agam27-Jul-05 9:28
Yigal Agam27-Jul-05 9:28 
GeneralRe: Scrolling with bitmap Pin
Libor Tinka27-Jul-05 9:53
Libor Tinka27-Jul-05 9:53 
QuestionGiant memory leaks or what? Pin
Libor Tinka27-Jul-05 8:37
Libor Tinka27-Jul-05 8:37 
AnswerRe: Giant memory leaks or what? Pin
Dave Kreskowiak27-Jul-05 8:41
mveDave Kreskowiak27-Jul-05 8:41 
GeneralRe: Giant memory leaks or what? Pin
Libor Tinka27-Jul-05 9:00
Libor Tinka27-Jul-05 9:00 
No, I'm not so silly.
This is the pseudo-code (loading and saving thumb) of my Thumbnail class:

<br />
Image source = Image.FromFile(sourcePath);<br />
Image img = new Bitmap(128, 128);<br />
<br />
Graphics grfx = Graphics.FromImage(img);<br />
grfx.DrawImage(img, ...)<br />
<br />
grfx.Dispose();<br />
source.Dispose();<br />
<br />
this.image = img;<br />


The thumbnail creation process runs on background and Thumbnail instance draws its image in overriden OnPaint method (not in PictureBox).
GeneralRe: Giant memory leaks or what? Pin
Libor Tinka27-Jul-05 9:04
Libor Tinka27-Jul-05 9:04 
AnswerRe: Giant memory leaks or what? Pin
Judah Gabriel Himango27-Jul-05 9:11
sponsorJudah Gabriel Himango27-Jul-05 9:11 
GeneralRe: Giant memory leaks or what? Pin
Libor Tinka27-Jul-05 9:40
Libor Tinka27-Jul-05 9:40 
GeneralRe: Giant memory leaks or what? Pin
Judah Gabriel Himango27-Jul-05 9:46
sponsorJudah Gabriel Himango27-Jul-05 9:46 
GeneralRe: Giant memory leaks or what? Pin
Libor Tinka27-Jul-05 9:56
Libor Tinka27-Jul-05 9:56 
AnswerRe: Giant memory leaks or what? Pin
Andy Brummer27-Jul-05 11:46
sitebuilderAndy Brummer27-Jul-05 11:46 
GeneralEnumerations Pin
MarkMokris27-Jul-05 8:17
MarkMokris27-Jul-05 8:17 
GeneralRe: Enumerations Pin
Libor Tinka27-Jul-05 8:23
Libor Tinka27-Jul-05 8:23 
GeneralRe: Enumerations Pin
Matt Gerrans27-Jul-05 8:24
Matt Gerrans27-Jul-05 8:24 
GeneralRe: Enumerations Pin
Matt Gerrans27-Jul-05 8:34
Matt Gerrans27-Jul-05 8:34 
GeneralRe: Enumerations Pin
MarkMokris27-Jul-05 8:29
MarkMokris27-Jul-05 8:29 
GeneralRe: Enumerations Pin
Libor Tinka27-Jul-05 8:40
Libor Tinka27-Jul-05 8:40 
GeneralStatic Panel and the IDE Pin
Peter Vertes27-Jul-05 8:10
Peter Vertes27-Jul-05 8:10 
GeneralRe: Static Panel and the IDE Pin
Libor Tinka27-Jul-05 8:53
Libor Tinka27-Jul-05 8:53 
Generaldisabling windows keys Pin
Sam 200627-Jul-05 7:38
Sam 200627-Jul-05 7:38 
GeneralRe: disabling windows keys Pin
Peter Vertes27-Jul-05 8:15
Peter Vertes27-Jul-05 8:15 
GeneralAsynchronous socket problems in windows service Pin
daniilzol27-Jul-05 7:04
daniilzol27-Jul-05 7:04 

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.