Package javax.media.format

Examples of javax.media.format.RGBFormat.clone()


   
    // RGBFormat - equal and match:
    {
      final RGBFormat[] f2s = new RGBFormat[]{
            new RGBFormat(new Dimension(1, 1), 2000, Format.byteArray, 2.f, 1, 2, 3, 4, 5, 6, 7, 8),
            (RGBFormat) f1.clone(),
            (RGBFormat) f1.intersects(f1)
      };
      for (int i = 0; i < f2s.length; ++i)
      {
        RGBFormat f2 = f2s[i];
View Full Code Here


      }
     
      if (f1 instanceof RGBFormat)
      {  final RGBFormat vf1 = (RGBFormat) f1;
        if (vf1.getSize() != null)
          assertFalse(vf1.getSize() == ((RGBFormat) vf1.clone()).getSize());
       
        final RGBFormat fRelax = (RGBFormat) f1.relax();
        assertEquals(fRelax.getEncoding(), vf1.getEncoding());
        assertEquals(fRelax.getDataType(), vf1.getDataType());
        assertEquals(fRelax.getFrameRate(), -1.f);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.