/// <summary> /// Apply graphics effect /// </summary> /// <param name="bitmap"></param> /// <param name="geb"></param> /// <returns></returns> public static Bitmap ApplyEffect(Bitmap bitmap, GraphicsEffectsBase geb) { geb.GraphicsEffectsData = new GraphicsEffectsData() { OriginalBitmap = bitmap }; geb.ApplyEffects(); return geb.GraphicsEffectsData.ResultBitmap; }
public static void ApplyEffect(Bitmap bitmap, GraphicsEffectsBase geb) { //Should run via ImageProcessingProvider GraphicsFunctions.ApplyEffect(bitmap, geb); }