public static void ImageMagickWatermark() { string watermark = Path.Combine(Directory.GetCurrentDirectory(), "watermark.png"); if (File.Exists(watermark)) { switch (EditorUtility.DisplayDialogComplex("Watermark", "Watermark selected Texture2D(s)?", "Yes - Suffix", "No", "Yes")) { case 0: Imagemagick.WatermarkSelected(watermark, "_watermark"); break; case 1: break; case 2: Imagemagick.WatermarkSelected(watermark, ""); break; } } else { Debug.LogError("File not exists : " + watermark); } }
static void ImageMagickJpgInternal(int quality) { switch (EditorUtility.DisplayDialogComplex("To Jpg", "Jpg selected Texture2D(s)?", "Yes - Suffix", "No", "Yes")) { case 0: Imagemagick.JpgSelected("_jpg", quality); break; case 1: break; case 2: Imagemagick.JpgSelected(""); break; } }
public static void ImageMagickBlur() { switch (EditorUtility.DisplayDialogComplex("Blur", "Blur selected Texture2D(s)?", "Yes - Suffix", "No", "Yes")) { case 0: Imagemagick.BlurSelected("_blur"); break; case 1: break; case 2: Imagemagick.BlurSelected(""); break; } }
public static void ImageMagickTrim() { switch (EditorUtility.DisplayDialogComplex("Trim", "Trim selected Texture2D(s)?", "Yes - Suffix", "No", "Yes")) { case 0: Imagemagick.TrimSelected("_trim"); break; case 1: break; case 2: Imagemagick.TrimSelected(""); break; } }
public static void ImageMagickGray() { switch (EditorUtility.DisplayDialogComplex("Gray", "Gray selected Texture2D(s)?", "Yes - Suffix", "No", "Yes")) { case 0: Imagemagick.GraySelected("_gray"); break; case 1: break; case 2: Imagemagick.GraySelected(""); break; } }
public static void ImageMagickSoftEdges() { switch (EditorUtility.DisplayDialogComplex("Soft Edges", "Soft Edges selected Texture2D(s)?", "Yes - Suffix", "No", "Yes")) { case 0: Imagemagick.SoftEdgesSelected("_softedges"); break; case 1: break; case 2: Imagemagick.SoftEdgesSelected(""); break; } }
public static void ImageMagickPngQuant() { switch (EditorUtility.DisplayDialogComplex("Quantize", "Quantize selected Texture2D(s)?", "Yes - Suffix", "No", "Yes")) { case 0: Imagemagick.PngQuantSelected("_quant"); break; case 1: break; case 2: Imagemagick.PngQuantSelected(""); break; } }
public static void ImageMagickShadowOutlines() { switch (EditorUtility.DisplayDialogComplex("Shadow Outlines", "Shadow Outlines selected Texture2D(s)?", "Yes - Suffix", "No", "Yes")) { case 0: Imagemagick.DropShadowOutlineSelected("_shadowoutline"); break; case 1: break; case 2: Imagemagick.DropShadowOutlineSelected(""); break; } }
public static void ImageMagickDropShadow() { switch (EditorUtility.DisplayDialogComplex("Drop Shadow", "Drow Shadow selected Texture2D(s)?", "Yes - Suffix", "No", "Yes")) { case 0: Imagemagick.DropShadowSelected("_shadow"); break; case 1: break; case 2: Imagemagick.DropShadowSelected(""); break; } }