.NETGURU
tiling
Messages   Related Types
This message was discovered on ASPFriends.com 'ngfx-drawing' list.


Chris Aernoudt
Hello,

What would be the best way of tiling images into one larger image?
Is there some kind of copypixels method available in .net?

Thank you

Chris.

Reply to this message...
 
    
Chris Garrett
[Original message clipped]

Use DrawImage
http://www.aspalliance.com/chrisg/default.asp?article=98

Chris

Reply to this message...
 
    
Jeff Widmer
Here's some code:

Imports System.Drawing

'Create a new image at the final size of the compiled images
Dim imgComp As Image = New Bitmap(400, 400)
'Create a graphics class from this image
Dim grphComp As Graphics = Graphics.FromImage(imgComp)

'Assuming there are four pieces each of the same size (200 x 200),
' draw them onto the composite image
grphComp.DrawImage(imgTile1, 0, 0, 200, 200)
grphComp.DrawImage(imgTile2, 200, 0, 200, 200)
grphComp.DrawImage(imgTile3, 0, 200, 200, 200)
grphComp.DrawImage(imgTile4, 200, 200, 200, 200)

'Return the newly composed full size image
Return imgComp

Hope this helps,
-Jeff

-----Original Message-----
From: Chris Aernoudt [mailto:Click here to reveal e-mail address]
Sent: Tuesday, March 05, 2002 7:26 AM
To: ngfx-drawing
Subject: [ngfx-drawing] tiling

Hello,

What would be the best way of tiling images into one larger image?
Is there some kind of copypixels method available in .net?

Thank you

Chris.

| [ngfx-drawing] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-drawing.asp = JOIN/QUIT

Reply to this message...
 
    
Chris Garrett
[Original message clipped]

A more detailed look at tiling is here (requires subscription)

http://www.asptoday.com/content/articles/20020222.asp

Chris

Reply to this message...
 
    
Steve Nihan
I would think you would want to do that with the use of tables. Is there
another way?

-----Original Message-----
From: Chris Aernoudt [mailto:Click here to reveal e-mail address]
Sent: Tuesday, March 05, 2002 7:26 AM
To: ngfx-drawing
Subject: [ngfx-drawing] tiling

Hello,

What would be the best way of tiling images into one larger image?
Is there some kind of copypixels method available in .net?

Thank you

Chris.

| [ngfx-drawing] member Click here to reveal e-mail address = YOUR ID
| http://www.aspfriends.com/aspfriends/ngfx-drawing.asp = JOIN/QUIT

Reply to this message...
 
 
System.Drawing.Graphics




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification