Creating a single image using

Posted on 2011-10-11
Last Modified: 2012-05-12
I have a json object

{ "mode": "collage", "objects": [ { "height": 207, "id": 46, "left": 370.333, "top": 76.4, "type": "image", "width": 276, "zIndex": 2 }, { "height": 40, "id": 109, "left": 364.383, "top": 283.4, "type": "word", "width": 95, "zIndex": 8 }, { "height": 40, "id": 91, "left": 527.783, "top": 187.4, "type": "word", "width": 170, "zIndex": 4 }, { "height": 75, "id": 107, "left": 199, "top": 167, "type": "word", "width": 264, "zIndex": 5 }, { "height": 55, "id": 30, "left": 321.667, "top": 250, "type": "image", "width": 73, "zIndex": 9 } ] }

which contains a bunch of coords and a refernce to an image id, each record in the above object, points to a single image file and together they make a wee little collage.

Is it possible to combine all of these into one image within my browser, so that the user can right click and save it out as one image file.
Question by:JDEE8297
    LVL 83

    Expert Comment

    Where is the actual image data?

    Author Comment

    the information I have is as follow(s)

    id = record id of the image in the database, which I can pull back without any issues
    left, top, height, width coordinates of the image

    And that my friend is about it, I have looked at everything from using system.drawing to build the single image from a group of images, and so far no success. So any help you can give, will be appreciated.
    LVL 83

    Accepted Solution

    You can use the Graphics object to draw multiple small bitmaps onto a single big bitmap. See examples here

    Author Closing Comment

    thank you

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
    The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now