Example #1
0
 public IpcPixelFormatCustom(int channelsPerPixel, int bitsPerChannel, IpcChannelDataType ipcChannelDataType)
 {
     ChannelsPerPixel   = channelsPerPixel;
     BitsPerChannel     = bitsPerChannel;
     IpcPixelFormatType = IpcPixelFormatType.Custom;
     BitsPerPixel       = channelsPerPixel * bitsPerChannel;
     BytesPerPixel      = (int)Math.Round((double)BitsPerPixel / 8);
 }
 internal IpcPixelFormatDefault(int channelsPerPixel, int bitsPerChannel, IpcChannelDataType ipcChannelDataType, IpcPixelFormatType type)
 {
     ChannelsPerPixel   = channelsPerPixel;
     BitsPerChannel     = bitsPerChannel;
     IpcChannelDataType = ipcChannelDataType;
     IpcPixelFormatType = type;
     BitsPerPixel       = channelsPerPixel * bitsPerChannel;
     BytesPerPixel      = (int)Math.Round((double)BitsPerPixel / 8);
 }
Example #3
0
 public IpcPixelFormatCustom()
 {
     IpcPixelFormatType = IpcPixelFormatType.Custom;
 }