001 /*----------------------------------------------------------------------------*/ 002 /* Copyright (c) FIRST 2008-2012. All Rights Reserved. */ 003 /* Open Source Software - may be modified and shared by FRC teams. The code */ 004 /* must be accompanied by the FIRST BSD license file in the root directory of */ 005 /* the project. */ 006 /*----------------------------------------------------------------------------*/ 007 package edu.wpi.first.wpilibj.image; 008 009 /** 010 * A color image represented in HSL color space at 3 bytes per pixel. 011 * @author dtjones 012 */ 013 public class HSLImage extends ColorImage { 014 015 /** 016 * Create a new 0x0 image. 017 */ 018 public HSLImage() throws NIVisionException{ 019 super(NIVision.ImageType.imaqImageHSL); 020 } 021 022 HSLImage(HSLImage sourceImage) { 023 super(sourceImage); 024 } 025 026 /** 027 * Create a new image by loading a file. 028 * @param fileName The path of the file to load. 029 */ 030 public HSLImage(String fileName) throws NIVisionException { 031 super(NIVision.ImageType.imaqImageHSL); 032 NIVision.readFile(image, fileName); 033 } 034 }