3ds Max C++ API Reference
Loading...
Searching...
No Matches
hsv.h File Reference
#include "ColorPicker.h"

Classes

class  HSVCallback

Functions

CoreExport void RGBtoHSV (DWORD rgb, int *ho, int *so, int *vo)
CoreExport DWORD HSVtoRGB (int H, int S, int V)
CoreExport void HSVtoHWBt (int h, int s, int v, int *ho, int *w, int *bt)
CoreExport void HWBttoHSV (int h, int w, int bt, int *ho, int *s, int *v)
INT_PTR HSVDlg_Do (HWND, DWORD *, IPoint2 *, HSVCallback *, const MCHAR *)
INT_PTR HSVDlg_Do (HWND hwndOwner, AColor *lpc, IPoint2 *spos, HSVCallback *callBack, const MCHAR *name)

Function Documentation

◆ HSVDlg_Do() [1/2]

INT_PTR HSVDlg_Do ( HWND ,
DWORD * ,
IPoint2 * ,
HSVCallback * ,
const MCHAR *  )
inline
64 :4996) // deprecated warning
65 HSVCallback* /*callBack*/, // called when color changes
66#pragma warning(pop)
67 const MCHAR* /*name*/ // name of color being edited
68 )
69{
70 return 0;
71};
Definition hsv.h:48
#define MCHAR
MBCS/Unicode helper defines std::wofstream doesn't mix well with Unicode.
Definition strbasic.h:42

◆ HSVDlg_Do() [2/2]

INT_PTR HSVDlg_Do ( HWND hwndOwner,
AColor * lpc,
IPoint2 * spos,
HSVCallback * callBack,
const MCHAR * name )
inline
79 :4996) // deprecated warning
80 HSVCallback *callBack, // called when color changes
81#pragma warning(pop)
82 const MCHAR *name // name of color being edited
83 )
84{
85 return ModalColorPicker(hwndOwner, *lpc, ColorPicker::EnableAlpha, spos, callBack, name);
86};
CoreExport INT_PTR ModalColorPicker(HWND hwndOwner, AColor &color, ColorPicker::Flags flags, IPoint2 *pPos, ColorPickerCallback *callBack, const MCHAR *name, ColorContext context=ColorContext::COLOR_SPACE_CONTEXT_NONE)
This function puts up the "modal" color picker dialog box.
@ EnableAlpha
no flags means RGBA.
Definition ColorPicker.h:95