Click here to Skip to main content
16,021,687 members
Home / Discussions / C#
   

C#

 
AnswerRe: Converting ulaw to alaw Pin
jeron115-Sep-24 14:11
jeron115-Sep-24 14:11 
GeneralRe: Converting ulaw to alaw Pin
charles henington18-Sep-24 16:10
charles henington18-Sep-24 16:10 
Questionhow to get image Thumbnail without open it? Pin
Le@rner10-Sep-24 18:34
Le@rner10-Sep-24 18:34 
AnswerRe: how to get image Thumbnail without open it? Pin
Richard Deeming10-Sep-24 21:28
mveRichard Deeming10-Sep-24 21:28 
AnswerRe: how to get image Thumbnail without open it? Pin
OriginalGriff10-Sep-24 23:05
mveOriginalGriff10-Sep-24 23:05 
AnswerRe: how to get image Thumbnail without open it? Pin
Le@rner10-Sep-24 23:29
Le@rner10-Sep-24 23:29 
GeneralRe: how to get image Thumbnail without open it? Pin
Dave Kreskowiak11-Sep-24 3:17
mveDave Kreskowiak11-Sep-24 3:17 
GeneralRe: how to get image Thumbnail without open it? Pin
OriginalGriff11-Sep-24 4:03
mveOriginalGriff11-Sep-24 4:03 
As Dave has said, no - it's not possible.

However, there are two things you might consider to speed things up:

1) Cache your thumbnails. Create a new folder (if it doesn't exist) below the source image folder called "Thumbs", and when you need a thumbnail check that folder first for a file of the same name. If it exists, just read the thumbnail file. If it doesn't, generate the thumbnail and add it to the Thumbs folder. That doesn't speed everything up, but the second and successive times it will.

2) Do the above, but add a background thread that checks the images folder for "missing thumbs" and create them as needed. That again doesn't speed anything up, but it moves the generation into the background and "pre-prepares" thumbs that haven't been asked for yet.

Obviously, it'll take some work to ensure everything doesn't start colliding and your app crashes as a result, but it's that or insist that the images need to be added to your app before they are used (and creating the thumbnail then) - which may not be possible / convenient for your users / app.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!

GeneralRe: how to get image Thumbnail without open it? Pin
lmoelleb12-Sep-24 19:38
lmoelleb12-Sep-24 19:38 
AnswerRe: how to get image Thumbnail without open it? Pin
jschell12-Sep-24 13:08
jschell12-Sep-24 13:08 
Questionhow set cutom paper size? Pin
Le@rner28-Aug-24 0:38
Le@rner28-Aug-24 0:38 
AnswerRe: how set cutom paper size? Pin
RedDk28-Aug-24 9:18
RedDk28-Aug-24 9:18 
Questionbutton event handler where it drops it? Pin
geomeo12326-Aug-24 11:12
geomeo12326-Aug-24 11:12 
AnswerRe: button event handler where it drops it? Pin
OriginalGriff26-Aug-24 19:17
mveOriginalGriff26-Aug-24 19:17 
RantRe: button event handler where it drops it? Pin
geomeo12327-Aug-24 10:46
geomeo12327-Aug-24 10:46 
GeneralRe: button event handler where it drops it? Pin
OriginalGriff27-Aug-24 19:25
mveOriginalGriff27-Aug-24 19:25 
GeneralRe: button event handler where it drops it? Pin
geomeo12330-Aug-24 16:31
geomeo12330-Aug-24 16:31 
AnswerRe: button event handler where it drops it? Pin
Richard MacCutchan26-Aug-24 22:12
mveRichard MacCutchan26-Aug-24 22:12 
GeneralRe: button event handler where it drops it? Pin
geomeo12327-Aug-24 10:49
geomeo12327-Aug-24 10:49 
GeneralRe: button event handler where it drops it? Pin
Richard MacCutchan27-Aug-24 21:31
mveRichard MacCutchan27-Aug-24 21:31 
GeneralRe: button event handler where it drops it? Pin
geomeo12330-Aug-24 16:41
geomeo12330-Aug-24 16:41 
AnswerRe: button event handler where it drops it? Pin
Ravi Bhavnani4-Sep-24 12:23
professionalRavi Bhavnani4-Sep-24 12:23 
GeneralRe: button event handler where it drops it? Pin
geomeo12325-Sep-24 9:20
geomeo12325-Sep-24 9:20 
GeneralRe: button event handler where it drops it? Pin
Ravi Bhavnani26-Sep-24 4:42
professionalRavi Bhavnani26-Sep-24 4:42 
GeneralRe: button event handler where it drops it? Pin
geomeo12326-Sep-24 7:37
geomeo12326-Sep-24 7:37 

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.