Custom Text Formatting (Previously: Getting long results in a program)
|
04-11-2024, 02:55 PM
Post: #63
|
|||
|
|||
RE: Getting long results in Program
Hi Tyann.
(04-11-2024 10:17 AM)Tyann Wrote: I just have one small reservation : in the official guide it is written that for BLIT_P if the source and destination variables are the same and the areas to be copied overlap, the result can be unexpected. I wouldn't propose such a solution if I weren't sure it would work I tested the BLIT_P function a few months ago (I wrote a [post] then about its inconsistency regarding the "alpha" parameter compared to other drawing functions). In general, the mechanism included in BLIT_P copies pixels sequentially from left to right, so if the source area is on the right side and we move it to the left, the shift will be correct. The problem arises when we try to move pixels to the right. Then, at some point, part of the target area will become the source, and artifacts will appear. In the case of creating an italic effect, we move pixels to the left, so everything will work as it should. Piotr Kowalewski |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 27 Guest(s)