blob: 5fc04705d78b53acda5cdb646f0421fffb07febf [file] [log] [blame]
Brian Silverman26e4e522015-12-17 01:56:40 -05001/*----------------------------------------------------------------------------*/
Brian Silverman1a675112016-02-20 20:42:49 -05002/* Copyright (c) FIRST 2014-2016. All Rights Reserved. */
Brian Silverman26e4e522015-12-17 01:56:40 -05003/* Open Source Software - may be modified and shared by FRC teams. The code */
Brian Silverman1a675112016-02-20 20:42:49 -05004/* must be accompanied by the FIRST BSD license file in the root directory of */
5/* the project. */
Brian Silverman26e4e522015-12-17 01:56:40 -05006/*----------------------------------------------------------------------------*/
7
8#pragma once
9
10#include <stdio.h>
11#include "nivision.h"
12#include "ErrorBase.h"
13
14#define DEFAULT_BORDER_SIZE 3
15
16class ImageBase : public ErrorBase {
17 public:
18 ImageBase(ImageType type);
19 virtual ~ImageBase();
20 virtual void Write(const char *fileName);
21 int GetHeight();
22 int GetWidth();
23 Image *GetImaqImage();
24
25 protected:
26 Image *m_imaqImage;
27};