[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 207
  • Last Modified:

Creating a single image using asp.net

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.
0
JDEE8297
Asked:
JDEE8297
  • 2
  • 2
1 Solution
 
CodeCruiserCommented:
Where is the actual image data?
0
 
JDEE8297Author Commented:
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.
0
 
CodeCruiserCommented:
You can use the Graphics object to draw multiple small bitmaps onto a single big bitmap. See examples here

http://www.vbforums.com/showthread.php?t=338361

http://forums.asp.net/t/1114047.aspx/1
0
 
JDEE8297Author Commented:
thank you
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now