37 #include "scalefactors.h"
38 #include "drawtransform.h"
51 unsigned char *_image;
68 virtual void plot(
int x,
int y)
const;
69 virtual void plot(
const Point &pos)
const;
71 bool load(
const std::string &file_name);
84 bool dithered()
const {
return ((_plot_flags & 1) != 0);}
152 static bool IsJPEGFile(
const std::string &file_name);
153 static bool GetFileInfo(
const std::string &file_name,
int *
width,
int *
height,
int *
x_density,
int *
y_density,
int *workspace,
bool *greyscale_image,
bool *no_transform_plots,
bool *pixel_density_is_simple_ratio);
JPEG()
Construct an unloaded JPEG image.
Definition: jpeg.cc:42
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:35
int extra_workspace() const
Return the extra memory required to plot this image.
Definition: jpeg.h:131
virtual void plot(int x, int y) const
Plot jpeg to screen.
Definition: jpeg.cc:166
bool transform_plot_suppoted() const
Check is transform plots are supported for this image.
Definition: jpeg.h:144
int x_density() const
Get the horizontal pixel density.
Definition: jpeg.h:119
bool dithered() const
Return dithered plot flag.
Definition: jpeg.h:84
Class to load and display JPEG images.
Definition: jpeg.h:49
bool density_simple_ratio() const
Check if this image has a simple density ratio.
Definition: jpeg.h:150
bool error_defused() const
Return error defused plot flag.
Definition: jpeg.h:91
Class to represent a two dimensional bounding box.
Definition: bbox.h:38
static bool GetFileInfo(const std::string &file_name, int *width, int *height, int *x_density, int *y_density, int *workspace, bool *greyscale_image, bool *no_transform_plots, bool *pixel_density_is_simple_ratio)
Get information on a JPEG file.
Definition: jpeg.cc:326
int height() const
Get the height of image.
Definition: jpeg.h:112
Base class image classes providing a consistent interface to plot the to the screen.
Definition: image.h:45
int y_density() const
Get the vertical pixel density.
Definition: jpeg.h:125
static bool IsJPEGFile(const std::string &file_name)
Check if a file is a JPEG file.
Definition: jpeg.cc:298
int width() const
Get the width of image.
Definition: jpeg.h:105
Class to represent a position in two dimensional space.
Definition: point.h:37
bool greyscale() const
Check if image is grey scale.
Definition: jpeg.h:138
virtual ~JPEG()
Destroy image data if loaded.
Definition: jpeg.cc:58
Class for sprite ScaleFactors.
Definition: scalefactors.h:46
bool is_valid() const
Check if JPEG class contains an image.
Definition: jpeg.h:98
JPEG & operator=(const JPEG &other)
Assignment operator.
Definition: jpeg.cc:87
bool load(const std::string &file_name)
Load JPEG from file.
Definition: jpeg.cc:115