2004-02-14 02:53:45 +03:00
|
|
|
/*
|
|
|
|
* HalftoneView.h
|
|
|
|
* Copyright 2004 Michael Pfeiffer. All Rights Reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _HALFTONE_VIEW_H
|
|
|
|
#define _HALFTONE_VIEW_H
|
|
|
|
|
|
|
|
#include <View.h>
|
|
|
|
#include "Halftone.h"
|
|
|
|
|
|
|
|
class HalftonePreviewView : public BView
|
|
|
|
{
|
|
|
|
public:
|
2010-12-08 23:07:22 +03:00
|
|
|
HalftonePreviewView(BRect frame, const char* name,
|
|
|
|
uint32 resizeMask, uint32 flags);
|
2004-02-14 02:53:45 +03:00
|
|
|
|
2010-12-08 23:07:22 +03:00
|
|
|
void Preview(float gamma, float min, Halftone::DitherType ditherType,
|
|
|
|
bool color);
|
2004-02-14 02:53:45 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
class HalftoneView : public BView
|
|
|
|
{
|
|
|
|
public:
|
2010-12-08 23:07:22 +03:00
|
|
|
HalftoneView(BRect frame, const char* name, uint32 resizeMask,
|
|
|
|
uint32 flags);
|
2004-02-14 02:53:45 +03:00
|
|
|
|
2010-12-08 23:07:22 +03:00
|
|
|
void Preview(float gamma, float min, Halftone::DitherType ditherType,
|
|
|
|
bool color);
|
2004-02-14 02:53:45 +03:00
|
|
|
|
|
|
|
private:
|
|
|
|
HalftonePreviewView* fPreview;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|