public GmicImageListImageData() { width = 0; height = 0; pixels = new GmicImageListPixelData(); format = NativeImageFormat.Gray8; }
internal static void GmicImageListAdd(SafeGmicImageList list, uint width, uint height, GmicPixelFormat format, string name, out GmicImageListPixelData pixelData, out NativeImageFormat nativeImageFormat) { ValidateGmicImageList(list); pixelData = new GmicImageListPixelData(); nativeImageFormat = ConvertToNativeImageFormat(format); GmicStatus status = GmicNativeMethods.Instance.GmicImageListAdd(list, width, height, nativeImageFormat, string.IsNullOrWhiteSpace(name) ? null : name, pixelData); if (status != GmicStatus.Ok) { HandleError(status); } }
internal GmicStatus GmicImageListAdd(SafeGmicImageList list, uint width, uint height, NativeImageFormat format, string name, GmicImageListPixelData pixelData) { return(gmicImageListAdd(list, width, height, format, name, pixelData)); }