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/*----------------------------------------------------------------------------*/ 007package edu.wpi.first.wpilibj.image; 008 009import com.ni.vision.NIVision; 010 011/** 012 * A color image represented in HSL color space at 3 bytes per pixel. 013 * @author dtjones 014 */ 015public class HSLImage extends ColorImage { 016 017 /** 018 * Create a new 0x0 image. 019 */ 020 public HSLImage() throws NIVisionException { 021 super(NIVision.ImageType.IMAGE_HSL); 022 } 023 024 HSLImage(HSLImage sourceImage) { 025 super(sourceImage); 026 } 027 028 /** 029 * Create a new image by loading a file. 030 * @param fileName The path of the file to load. 031 */ 032 public HSLImage(String fileName) throws NIVisionException { 033 super(NIVision.ImageType.IMAGE_HSL); 034 NIVision.imaqReadFile(image, fileName); 035 } 036}