Example #1
0
 public void writeNext(int value)
 {
     imageWriter.writeNext(value);
     x++;
     if (x >= minWidth)
     {
         imageWriter.skip(skipWidth);
         x = 0;
     }
 }
Example #2
0
        public override int ioRead(TPointer outputPointer, int outputLength)
        {
            int readLength = base.ioRead(outputPointer, outputLength);

            if (readLength > 0)
            {
                IMemoryReaderWriter memoryReaderWriter = MemoryReaderWriter.getMemoryReaderWriter(outputPointer.Address, readLength, 1);
                for (int i = 0; i < readLength; i++)
                {
                    int value = memoryReaderWriter.readCurrent();
                    value ^= xor;
                    memoryReaderWriter.writeNext(value);
                }
                memoryReaderWriter.flush();
            }

            return(readLength);
        }
Example #3
0
 public void writeNext(int value)
 {
     memoryReaderWriter.writeNext(color8888to565(value));
 }
Example #4
0
 public void writeNext(ColorDepth colorDepth)
 {
     fbWriter.writeNext(colorDepth.color);
     depthWriter.writeNext(colorDepth.depth);
 }