3

I'm looking for a way to merge several png images with identical dimensions together into a single file via commandline, like this:

file 1: ----------------
        ----------------
        ----------------
file 2: ................
        ................
        ................
result of merging files 1 and 2:
        ----------------
        ----------------
        ----------------
        ................
        ................
        ................

I've already done some googling but couldn't find anything useful so far. FYI, I'm trying to achieve this in a Powershell script. Thanks in advance.

resgh
  • 974
  • 2
  • 12
  • 22
  • Dear those who voted to close this, from the help center: "if your question generally covers… [a specific programming problem] [a software algorithm] [software tools commonly used by programmers] [practical, answerable problems that are unique to the programming profession] … then you’re in the right place to ask your question!" My question covers the first and third areas. My question is on-topic. Reverse your votes, please. – resgh Sep 20 '13 at 10:09
  • 2
    http://stackoverflow.com/questions/10608487/merge-two-pngs-via-command-line-tool-in-windows – David Brabant Sep 20 '13 at 11:44
  • @DavidBrabant I did read that question before I posted. We're asking different questions. – resgh Sep 20 '13 at 12:19
  • @namehere Demanding people reverse downvotes is bad practice on StackOverflow... I'd advise against it. – tnw Sep 20 '13 at 13:58
  • @tnw FYI, the demand was against the close vote. Of course, a reversal of the downvote would be happily welcomed. – resgh Sep 21 '13 at 07:45

1 Answers1

4

Why wouldn't you use ImageMagic? The montage option is likely providing the functionality you are looking for.

If you insist on re-inventing the wheel, use System.Drawing.Bitmap to load and create bitmaps.

vonPryz
  • 22,996
  • 7
  • 54
  • 65