コード例 #1
0
        public override void load(MImage image, uint idx)
        {
            uint w = 512;
            uint h = 512;

            // Create a floating point image and fill it with
            // a pretty rainbow test image.
            //
            image.create( w, h, 3, MImage.MPixelType.kFloat);
            unsafe
            {
                float* pixels = image.floatPixels();
                populateTestImage(pixels, w, h);
            }

            return;
        }
コード例 #2
0
        public override void load(MImage image, uint idx)
        {
            uint w = 512;
            uint h = 512;

            // Create a floating point image and fill it with
            // a pretty rainbow test image.
            //
            image.create(w, h, 3, MImage.MPixelType.kFloat);
            unsafe
            {
                float *pixels = image.floatPixels();
                populateTestImage(pixels, w, h);
            }

            return;
        }