1 /* 2 * HalftoneView.h 3 * Copyright 2004 Michael Pfeiffer. All Rights Reserved. 4 */ 5 6 #ifndef _HALFTONE_VIEW_H 7 #define _HALFTONE_VIEW_H 8 9 #include <View.h> 10 #include "Halftone.h" 11 12 class HalftonePreviewView : public BView 13 { 14 public: 15 HalftonePreviewView(BRect frame, const char* name, 16 uint32 resizeMask, uint32 flags); 17 18 void Preview(float gamma, float min, Halftone::DitherType ditherType, 19 bool color); 20 }; 21 22 class HalftoneView : public BView 23 { 24 public: 25 HalftoneView(BRect frame, const char* name, uint32 resizeMask, 26 uint32 flags); 27 28 void Preview(float gamma, float min, Halftone::DitherType ditherType, 29 bool color); 30 31 private: 32 HalftonePreviewView* fPreview; 33 }; 34 35 #endif 36 37