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

C#

 
AnswerRe: load a lot of Images to memory Pin
Luc Pattyn13-Jun-09 9:37
sitebuilderLuc Pattyn13-Jun-09 9:37 
GeneralRe: load a lot of Images to memory Pin
harold aptroot13-Jun-09 11:55
harold aptroot13-Jun-09 11:55 
GeneralRe: load a lot of Images to memory Pin
Luc Pattyn13-Jun-09 14:29
sitebuilderLuc Pattyn13-Jun-09 14:29 
GeneralRe: load a lot of Images to memory Pin
harold aptroot13-Jun-09 14:36
harold aptroot13-Jun-09 14:36 
GeneralRe: load a lot of Images to memory Pin
Luc Pattyn13-Jun-09 15:17
sitebuilderLuc Pattyn13-Jun-09 15:17 
AnswerRe: load a lot of Images to memory Pin
nryk13-Jun-09 18:05
nryk13-Jun-09 18:05 
GeneralRe: load a lot of Images to memory Pin
Dave Kreskowiak13-Jun-09 21:46
mveDave Kreskowiak13-Jun-09 21:46 
AnswerRe: load a lot of Images to memory Pin
Guffa13-Jun-09 21:26
Guffa13-Jun-09 21:26 
nryk wrote:
private byte[] FileToByteArray (string path)


Just use the File.ReadAllBytes method.

nryk wrote:
of course every bitmap in the memory takes about 10 times more then in the file


nryk wrote:
i get a byte array that is about 10 times bigger


From that I can deduct that you either managed to change the image into an image that is ten times larger (e.g. three times larger in both x and y axis), or you have changed it into something that the Save method could not compress at all. Could you post example image files somewhere for examination?

Despite everything, the person most likely to be fooling you next is yourself.

GeneralRe: load a lot of Images to memory Pin
nryk13-Jun-09 21:40
nryk13-Jun-09 21:40 
GeneralRe: load a lot of Images to memory Pin
harold aptroot13-Jun-09 22:38
harold aptroot13-Jun-09 22:38 
GeneralRe: load a lot of Images to memory Pin
Guffa13-Jun-09 23:30
Guffa13-Jun-09 23:30 
GeneralRe: load a lot of Images to memory Pin
nryk14-Jun-09 0:16
nryk14-Jun-09 0:16 
GeneralRe: load a lot of Images to memory Pin
Guffa14-Jun-09 21:18
Guffa14-Jun-09 21:18 
QuestionDockPanel Suite Pin
Rafone13-Jun-09 6:24
Rafone13-Jun-09 6:24 
AnswerRe: DockPanel Suite Pin
Henry Minute13-Jun-09 6:34
Henry Minute13-Jun-09 6:34 
GeneralRe: DockPanel Suite Pin
Rafone13-Jun-09 7:18
Rafone13-Jun-09 7:18 
Questioncannot load data from database to textbox in Visual c# 2008 Pin
Adekolurejo13-Jun-09 5:52
Adekolurejo13-Jun-09 5:52 
AnswerRe: cannot load data from database to textbox in Visual c# 2008 Pin
Henry Minute13-Jun-09 6:38
Henry Minute13-Jun-09 6:38 
QuestionRe: cannot load data from database to textbox in Visual c# 2008 Pin
Adekolurejo13-Jun-09 7:02
Adekolurejo13-Jun-09 7:02 
AnswerRe: cannot load data from database to textbox in Visual c# 2008 Pin
Dave Kreskowiak13-Jun-09 6:48
mveDave Kreskowiak13-Jun-09 6:48 
GeneralRe: cannot load data from database to textbox in Visual c# 2008 Pin
Adekolurejo13-Jun-09 7:23
Adekolurejo13-Jun-09 7:23 
AnswerRe: cannot load data from database to textbox in Visual c# 2008 Pin
alamree13-Jun-09 7:08
alamree13-Jun-09 7:08 
QuestionRe: cannot load data from database to textbox in Visual c# 2008 Pin
Adekolurejo13-Jun-09 7:25
Adekolurejo13-Jun-09 7:25 
Question[Message Deleted] Pin
hkjghkj113-Jun-09 5:46
hkjghkj113-Jun-09 5:46 
AnswerRe: Sound Delay Pin
Henry Minute13-Jun-09 6:40
Henry Minute13-Jun-09 6:40 

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.