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