Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
AnswerRe: Stitching Together Thousands Of Bitmaps Pin
Midi_Mick20-Oct-16 6:54
professionalMidi_Mick20-Oct-16 6:54 
AnswerRe: Stitching Together Thousands Of Bitmaps Pin
Gerry Schmitz20-Oct-16 7:45
mveGerry Schmitz20-Oct-16 7:45 
AnswerRe: Stitching Together Thousands Of Bitmaps Pin
Eddy Vluggen20-Oct-16 10:55
professionalEddy Vluggen20-Oct-16 10:55 
AnswerRe: Stitching Together Thousands Of Bitmaps Pin
Pete O'Hanlon20-Oct-16 21:18
mvePete O'Hanlon20-Oct-16 21:18 
AnswerRe: Stitching Together Thousands Of Bitmaps Pin
JBHowl21-Oct-16 3:26
JBHowl21-Oct-16 3:26 
GeneralRe: Stitching Together Thousands Of Bitmaps Pin
Eddy Vluggen21-Oct-16 3:50
professionalEddy Vluggen21-Oct-16 3:50 
GeneralRe: Stitching Together Thousands Of Bitmaps Pin
Midi_Mick21-Oct-16 14:40
professionalMidi_Mick21-Oct-16 14:40 
AnswerRe: Stitching Together Thousands Of Bitmaps Pin
Luc Pattyn21-Oct-16 13:52
sitebuilderLuc Pattyn21-Oct-16 13:52 
Hi,

If you have a number of .bmp files, it isn't hard to create a stack of them in a new .bmp file without even using the Image or Bitmap classes, provided all images have equal width.

All it takes is some understanding of the BMP file format[^] (basically locate the height information, and the border between header and pixel data), creating the BMP header, and stitching the data half of each of the .bmp files together.

The input images don't even have to be files, you could apply the same to memory streams. So what I would suggest is this: open an output stream, emit the BMP header for the resulting image (could be based on an input image with the height adapted appropriately), then enumerate the images, and for each of them create the memory stream, then append the byte data skipping the input header.

However, I do agree with the others, my first approach would be to avoid the need for a huge image altogether, as working with huge images will cause heavy memory loads, big latency times, and/or fatal errors. When huge amounts of data are involved, streaming is the way to go; stitching things together statically goes the wrong way. If part of your system needs the whole data, then try and fix that if at all possible.

PS & FWIW: I guess it is easy to show your image using a ListBox where each item corresponds to one input image; make it user drawn so no time is wasted in loading and painting items that aren't currently visible.

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum


modified 21-Oct-16 20:06pm.

QuestionThere is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key 'SelectedClientList'. Pin
amioni19-Oct-16 23:30
amioni19-Oct-16 23:30 
AnswerRe: There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key 'SelectedClientList'. Pin
Richard MacCutchan20-Oct-16 1:35
mveRichard MacCutchan20-Oct-16 1:35 
AnswerRe: There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key 'SelectedClientList'. Pin
Gerry Schmitz20-Oct-16 5:02
mveGerry Schmitz20-Oct-16 5:02 
QuestionInterface structure Pin
Mycroft Holmes19-Oct-16 17:38
professionalMycroft Holmes19-Oct-16 17:38 
AnswerRe: Interface structure Pin
Midi_Mick19-Oct-16 19:12
professionalMidi_Mick19-Oct-16 19:12 
GeneralRe: Interface structure Pin
Mycroft Holmes19-Oct-16 20:32
professionalMycroft Holmes19-Oct-16 20:32 
AnswerRe: Interface structure Pin
Midi_Mick19-Oct-16 21:32
professionalMidi_Mick19-Oct-16 21:32 
AnswerRe: Interface structure Pin
Pete O'Hanlon19-Oct-16 21:04
mvePete O'Hanlon19-Oct-16 21:04 
AnswerRe: Interface structure Pin
puneetdhawan200020-Oct-16 0:25
puneetdhawan200020-Oct-16 0:25 
AnswerRe: Interface structure Pin
Nathan Minier20-Oct-16 1:11
professionalNathan Minier20-Oct-16 1:11 
GeneralRe: Interface structure Pin
Mycroft Holmes20-Oct-16 12:53
professionalMycroft Holmes20-Oct-16 12:53 
GeneralRe: Interface structure Pin
Eddy Vluggen21-Oct-16 0:37
professionalEddy Vluggen21-Oct-16 0:37 
GeneralRe: Interface structure Pin
Nathan Minier21-Oct-16 1:09
professionalNathan Minier21-Oct-16 1:09 
GeneralCan we use Azure Table as database in CRM application? Pin
amit singhniet18-Oct-16 23:11
amit singhniet18-Oct-16 23:11 
GeneralRe: Can we use Azure Table as database in CRM application? Pin
dan!sh 18-Oct-16 23:58
professional dan!sh 18-Oct-16 23:58 
GeneralRe: Can we use Azure Table as database in CRM application? Pin
amit singhniet19-Oct-16 1:35
amit singhniet19-Oct-16 1:35 
GeneralRe: Can we use Azure Table as database in CRM application? Pin
Dave Kreskowiak19-Oct-16 6:15
mveDave Kreskowiak19-Oct-16 6:15 

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.