26#ifndef PREVIEWWINDOW_H
27#define PREVIEWWINDOW_H
29#include <wx/scrolwin.h>
69 int scale(
int x)
const;
70 double scale(
double x)
const;
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name="panel")
create the control
void setImage(const wxString &filename)
set the current image and mask list, this loads also the image from cache
vigra::ImageImportInfo::ICCProfile m_iccProfile
remember icc profile of currently loaded file
double calcAutoScaleFactor(wxSize size)
calculate new scale factor for this image
double m_scaleFactor
store current scale factor
int scale(int x) const
helper function to scale of width/height
double getScale()
return scale factor, 0 for autoscale
void OnSize(wxSizeEvent &e)
handler called when size of control was changed
void OnPaint(wxPaintEvent &e)
drawing routine
double getScaleFactor() const
get scale factor (calculates factor when fit to window is active)
void setScale(double factor)
set the scaling factor f.
void rescaleImage()
rescale the image
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.