gauravstomar / image-fill-color-objectivec Goto Github PK
View Code? Open in Web Editor NEWImage color filling API in Objective C
Image color filling API in Objective C
Hello Gaurav,
I really like your work and your example. Thanks for sharing us this example.
Now I want to ask you that, is it possible to undo/redo of filled color ? If i want to go to back few steps and then paint again ? Is it possible ?
Waiting for your answer.
Thanks
I feel like I'm taking crazy pills but I'm getting color data with green and alpha switched.
I'm running this on iPad Pro with iOS11, loading a rgb color png photo.
This method shows switched values for green and alpha.
`unsigned int getColorCode (unsigned int byteIndex, unsigned char *imageData)
{
unsigned int red = imageData[byteIndex];
unsigned int green = imageData[byteIndex + 1];
unsigned int blue = imageData[byteIndex + 2];
unsigned int alpha = imageData[byteIndex + 3];
return (red << 24) | (green << 16) | (blue << 8) | alpha;
}`
Green is always 255 and alpha is the green value.
Same results on iPad simulator running iOS11.
Any ideas?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.