3 Replies Latest reply on Dec 14, 2010 10:50 PM by Kevin Goldsmith

    How to assign value to image4?

    Edward2009 Level 1

      I use image4,like follows:

       

      input image4 src;
      output pixel4 dst;

       

      Then I want to assign value to src,so I use following statement

       

      void evaluatePixel()
      {
         src=image4("test.jpg");

      }

       

      When I compile above code,it raise following error:

      '"test.jpg"' : syntax error parse error

       

      How to correct above code?

       

      Thanks