Click here to Skip to main content
15,885,767 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# OOP Question: Best way to setup these classes? Pin
Shameel12-Aug-11 6:06
professionalShameel12-Aug-11 6:06 
Questionload big image in program Pin
Mohsen Shahindust12-Aug-11 4:24
Mohsen Shahindust12-Aug-11 4:24 
AnswerRe: load big image in program Pin
Blue_Boy12-Aug-11 4:31
Blue_Boy12-Aug-11 4:31 
GeneralRe: load big image in program Pin
Matt Meyer12-Aug-11 4:39
Matt Meyer12-Aug-11 4:39 
GeneralRe: load big image in program Pin
Mohsen Shahindust12-Aug-11 5:01
Mohsen Shahindust12-Aug-11 5:01 
AnswerWhat's the image for? Pin
MicroVirus12-Aug-11 4:43
MicroVirus12-Aug-11 4:43 
GeneralRe: What's the image for? Pin
Mohsen Shahindust12-Aug-11 5:07
Mohsen Shahindust12-Aug-11 5:07 
AnswerRe: load big image in program Pin
BobJanova12-Aug-11 6:06
BobJanova12-Aug-11 6:06 
You want to partition the image. (Or do the drawing in a better way ... a GIS style data backed vector render is probably what you want for a GPS map, but I digress.) A JPEG isn't a partitioned format, so I suggest that on first use, you partition it into sensible size (one screen or larger, file size a few MB) tiles and save each one as a file, then dispose of the huge image. You can then implement a load-on-demand tiling algorithm. This will still take 900MB of memory (in fact a little more, that plus one tile so maybe 920MB) during the partitioning operation, and I don't think there's a way to avoid that if you are required to use a huge JPEG as the source. Once the app is running you will need to have up to 4 tiles loaded at any one time, possibly up to 9 if you want to preload for scrolling.

Note though that your OS will almost certainly leave these files in some sort of in memory cache and they will still shunt other things out of the cache, so although your application will play more nicely with the memory it is still going to be slightly unwieldy.
GeneralRe: load big image in program Pin
MicroVirus12-Aug-11 8:36
MicroVirus12-Aug-11 8:36 
GeneralRe: load big image in program Pin
BobJanova12-Aug-11 8:43
BobJanova12-Aug-11 8:43 
GeneralRe: load big image in program Pin
MicroVirus12-Aug-11 8:55
MicroVirus12-Aug-11 8:55 
AnswerRe: load big image in program Pin
Oludayo Alli20-Aug-11 7:06
Oludayo Alli20-Aug-11 7:06 
Question1st year IT student seeking mentor Pin
Njabulo Mpungose12-Aug-11 3:40
Njabulo Mpungose12-Aug-11 3:40 
AnswerRe: 1st year IT student seeking mentor Pin
Not Active12-Aug-11 4:21
mentorNot Active12-Aug-11 4:21 
AnswerRe: 1st year IT student seeking mentor Pin
Blue_Boy12-Aug-11 4:22
Blue_Boy12-Aug-11 4:22 
AnswerRe: 1st year IT student seeking mentor Pin
OriginalGriff12-Aug-11 8:53
mveOriginalGriff12-Aug-11 8:53 
Questionhow to connect biometric device in c# .net Pin
harshal4patil11-Aug-11 23:27
harshal4patil11-Aug-11 23:27 
AnswerRe: how to connect biometric device in c# .net Pin
Pete O'Hanlon12-Aug-11 0:08
mvePete O'Hanlon12-Aug-11 0:08 
QuestionGoal Seek Pin
vmaxp11-Aug-11 22:46
vmaxp11-Aug-11 22:46 
SuggestionPlease explain Pin
MicroVirus12-Aug-11 4:47
MicroVirus12-Aug-11 4:47 
AnswerRe: Goal Seek Pin
Ravi Bhavnani14-Aug-11 4:32
professionalRavi Bhavnani14-Aug-11 4:32 
Questionhaving problem to translate from WinForm to Windows-CE C# program - FTP transfer [modified] Pin
Gali197811-Aug-11 21:27
Gali197811-Aug-11 21:27 
AnswerRe: having problem to translate from WinForm to Windows-CE C# program - FTP transfer Pin
OriginalGriff11-Aug-11 21:34
mveOriginalGriff11-Aug-11 21:34 
QuestionEnterprise library log to Oracle Pin
V.11-Aug-11 21:17
professionalV.11-Aug-11 21:17 
QuestionSelecting parts of an uint so always the same size? Pin
stephen.darling11-Aug-11 19:11
stephen.darling11-Aug-11 19:11 

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.