public Image(Image.ImageLayout pixLayout, Image.PixelOrder pixOrder, Image.DataType type) : this(solar_datastructurePINVOKE.new_Image__SWIG_0((int)pixLayout, (int)pixOrder, (int)type), true) { if (solar_datastructurePINVOKE.SWIGPendingException.Pending) { throw solar_datastructurePINVOKE.SWIGPendingException.Retrieve(); } }
public Image(global::System.IntPtr imageData, uint width, uint height, Image.ImageLayout pixLayout, Image.PixelOrder pixOrder, Image.DataType type) : this(solar_datastructurePINVOKE.new_Image__SWIG_2(imageData, width, height, (int)pixLayout, (int)pixOrder, (int)type), true) { if (solar_datastructurePINVOKE.SWIGPendingException.Pending) { throw solar_datastructurePINVOKE.SWIGPendingException.Retrieve(); } }
public Image.ImageLayout getImageLayout() { Image.ImageLayout ret = (Image.ImageLayout)solar_datastructurePINVOKE.Image_getImageLayout(swigCPtr); if (solar_datastructurePINVOKE.SWIGPendingException.Pending) { throw solar_datastructurePINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public virtual FrameworkReturnCode convert(Image imgSrc, Image imgDst, Image.ImageLayout destLayout) { FrameworkReturnCode ret = (FrameworkReturnCode)solar_api_imagePINVOKE.IImageConvertor_convert__SWIG_1(swigCPtr, Image.getCPtr(imgSrc), Image.getCPtr(imgDst), (int)destLayout); if (solar_api_imagePINVOKE.SWIGPendingException.Pending) { throw solar_api_imagePINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
static TextureFormat GetFormat(Image.ImageLayout layout) { switch (layout) { case Image.ImageLayout.LAYOUT_RGB: case Image.ImageLayout.LAYOUT_GRB: case Image.ImageLayout.LAYOUT_BGR: return(TextureFormat.RGB24); case Image.ImageLayout.LAYOUT_GREY: return(TextureFormat.Alpha8); case Image.ImageLayout.LAYOUT_RGBA: case Image.ImageLayout.LAYOUT_RGBX: case Image.ImageLayout.LAYOUT_UNDEFINED: default: return(TextureFormat.RGBA32); } }