1. Tileing an image
- Posted by "Thomas Parslow (PatRat)" <patrat at rat-software.com> Apr 25, 2001
- 407 views
Does anyone have an tips or source code to tile a small image onto a large area quickly and efficiently? This is in windows using win32lib. I was trying a method which involves bitBlting from one part of a bitmap to another part of that same bitmap, however this doesn't seem to work, if I could get this to work I think it would solve my problem... Thomas Parslow (PatRat) ICQ #:26359483 Rat Software http://www.rat-software.com/ Please leave quoted text in place when replying
2. Re: Tileing an image
- Posted by "Thomas Parslow (PatRat)" <patrat at rat-software.com> Apr 25, 2001
- 402 views
> Does anyone have an tips or source code to tile a small image onto > a large area quickly and efficiently? This is in windows using > win32lib. > > I was trying a method which involves bitBlting from one part of a > bitmap to another part of that same bitmap, however this doesn't seem > to work, if I could get this to work I think it would solve my > problem... > > Thomas Parslow (PatRat) ICQ #:26359483 > Rat Software > http://www.rat-software.com/ > Please leave quoted text in place when replying ah, think I've got it, the problem was that I was using Win32Lib's bitBlt and it was attempting to get DC's from both the src and the dst, this is normaly correct accept when src and dst are the same. Replacing the line: dstDC = getDC( dst ) with: if src = dst then dstDC = srcDC else dstDC = getDC( dst ) end if in bitBlt() in win32lib.ew makes it work nicely :) Thomas Parslow (PatRat) ICQ #:26359483 Rat Software http://www.rat-software.com/ Please leave quoted text in place when replying
3. Re: Tileing an image
- Posted by "Thomas Parslow (PatRat)" <patrat at rat-software.com> Apr 25, 2001
- 400 views
Whoops, forgot to mention in the last mail that you also need to replace the line: releaseDC( src ) in bitBlt() with: if src != dst then releaseDC( src ) end if Thomas Parslow (PatRat) ICQ #:26359483 Rat Software http://www.rat-software.com/ Please leave quoted text in place when replying