I have a series of avatars; each of them has a bright pink background RGB: 255.0 255.
Instead of going through each avatar and manually removing the pink background; is there any way to make Objective-C for background removal (masking) for me?
Avatar example:
alt text http://img39.imageshack.us/img39/2645/bluegem.png
One thing I'm worried about is that masking is done on the fly and can cost memory; Is this what I should worry about?
Also, let me say that I put avatars in the spritesheet; can i apply the mask once and work with it?
Thank you for your help.
. CGImageCreateWithMaskingColors. , , . . :
, NSArray addObject:yourButton , , , , :
addObject:yourButton
for (UIButton *custom in globalButtonArray) { custom.backgroundColor = [UIColor clearColor]; }
Source: https://habr.com/ru/post/1759734/More articles:Разница между производительностью двух запросов sql? - performanceGTK: get mouse click coordinates in a window - cTricky RegionPlot Question (Mathematica) - wolfram-mathematicaretrieve data from aspnet_Profile - asp.netWhy is there no C # compiler on win32 compiler? - compiler-constructionsqlalchemy - double polymorphic inheritance problem - polymorphismSelected topics - cReading system .Diagnostics.ProcessStartInfo StandardOutput as bytes instead of characters - c #RIA Services + Entity Framework 4 + POCO: Timestamp Field Error? - timestampdifference between array and list - cAll Articles