But I wanted to throw this code out there anyways.
Pick your filter.. throw it into the CIFilter.FromName() line, and bam, you have all the info you need to apply it.
CIFilter filter = CIFilter.FromName ("CISharpenLuminance");
string[] keys = filter.InputKeys;
NSDictionary attributes = filter.Attributes;
foreach(NSObject key in attributes.Keys)
{
Console.WriteLine(key.ToString());
Console.WriteLine (attributes[key].ToString());
}
foreach (string s in keys)System.Console.WriteLine (s);
Pick your filter.. throw it into the CIFilter.FromName() line, and bam, you have all the info you need to apply it.
No comments:
Post a Comment