Example #1
0
 public GmicImageListImageData()
 {
     width  = 0;
     height = 0;
     pixels = new GmicImageListPixelData();
     format = NativeImageFormat.Gray8;
 }
Example #2
0
        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);
            }
        }
Example #3
0
 internal GmicStatus GmicImageListAdd(SafeGmicImageList list,
                                      uint width,
                                      uint height,
                                      NativeImageFormat format,
                                      string name,
                                      GmicImageListPixelData pixelData)
 {
     return(gmicImageListAdd(list, width, height, format, name, pixelData));
 }