flat assembler
Message board for the users of flat assembler.
Index
> Windows > I need found rect image. |
Author |
|
Roman 22 May 2019, 04:03
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 |
|||
22 May 2019, 04:03 |
|
bitRAKE 23 May 2019, 00:39
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. _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
23 May 2019, 00:39 |
|
Roman 23 May 2019, 03:30
Thanks !
|
|||
23 May 2019, 03:30 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.