Beispiel #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);
 }
Beispiel #3
0
 public IpcPixelFormatCustom()
 {
     IpcPixelFormatType = IpcPixelFormatType.Custom;
 }