flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Roman
My image have 20 sprites with alpha channel.
I need found rect min\max alpha channel for each sprite. I search algorithm how do this. I want get something like this: https://www.youtube.com/watch?v=l_8uMZcPxHw#t=38 |
|||
![]() |
|
bitRAKE
The application is open source, and the algorithm is in:
https://github.com/ForkandBeard/Alferd-Spritesheet-Unpacker/blob/master/ASU/BO/RegionUnpacker.cs While a pixel is not the background color the rectangle is increased - in X and Y. This is done in multiple threads, and then overlapping rectangles are combined. |
|||
![]() |
|
Roman
Thanks !
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.