PIXELATEDLGPARAMS

typedef struct _PIXELATEDLGPARAMS 
{ 
   L_UINT uStructSize; 
   pBITMAPHANDLE pBitmap; 
   L_BOOL bZoomToFit; 
   L_UINT uCellWidth; 
   L_UINT uCellHeight; 
   L_UINT uOpacity; 
   POINT ptCenter; 
   L_UINT uPixelateFlags; 
   L_UINT32 uDlgFlags; 
   LTCOMMDLGHELPCB pfnHelpCallback; 
   L_VOID  *pHelpCallBackUserData; 
} PIXELATEDLGPARAMS,  * LPPIXELATEDLGPARAMS; 

The PIXELATEDLGPARAMS structure provides information used to initialize the dialog box created by the LDialogImageEffect::DoModalPixelate function. After the user closes the dialog box, this structure is updated with information about the user's selections.

Member Description
uStructSize Size of this structure, in bytes. Use the sizeof operator to calculate this value.
pBitmap Ignored.
bZoomToFit Flag that indicates the zoom level for previewing the image. Possible values are:
  Value Meaning
  TRUE Set the initial zoom level to "Zoom to fit".
  FALSE Set the initial zoom level to "Normal (1:1)".
uCellWidth Value that represents the width of a rectangular cell, the number of rectangular cells present across the width of the bitmap, the number of cells around the center point of a circular cell, or the length in degrees of each cell around the center point of a circular cell, based on the flags set in uPixelateFlags.
uCellHeight Value that represents the height of a rectangular cell, the number of rectangular cells present across the height of the bitmap, the number of cells along the radius of a circular cell, or the length of each cell along the radius of a circular cell, based on the flags set in uPixelateFlags.
uOpacity Value that represents how transparent the cells are, compared to the original pixels. This is a percentage. Possible values are 0 - 100. (0 is total opacity and 100 is total transparency.)
ptCenter Point that represents the center of revolution when circular cells are used. This parameter will be ignored if PIX_RECT is set in uPixelateFlags. . This center point must be defined inside the bitmap or inside the region, if the bitmap has a region.
uPixelateFlags Flags that indicate the values used to fill the cells, the shape of the cells, and what type of data is in the uCellWidth and uCellHeight parameters. You can use a bitwise OR (|) to specify one flag from each group.
  The following are the flags indicate what values will be used to fill the cells:
  Value Meaning
  PIX_MAX [0x0000] Fill the cell with the maximum pixel value of the cell.
  PIX_MIN [0x0001] Fill the cell with the minimum pixel value of the cell.
  PIX_AVR [0x0002] Fill the cell with the average pixel value of the cell.
  The following are the flags that indicate the shape of the cells:
  Value Meaning
  PIX_RECT [0x0000] Divide the image into rectangular cells. If this flag used, the uCellWidth value contains the cell width in pixels or the number of cells across the width of the bitmap. uCellHeight contains the cell height in pixels or the number of cells across the height of the bitmap.
  PIX_RAD [0x0010] Divide the image into circular cells, centered on CenterPt. If this flag is used, the uCellWidth value determines the angular component of the cell, and uCellHeight determines the radial component of the cell. Please note that PIX_RAD must be OR-ed with PIX_WPER or PIX_WFRQ.
  The following are the flags the indicate what information is contained in the uCellWidth and uCellHeight parameters:
  Value Meaning
  PIX_WFRQ [0x0100] Indicates the number of cells along the width of the bitmap if rectangular cells are used. If circular cells are used, this indicates the number of cells present around the center of the circle.
  PIX_WPER [0x0200] Indicates the width, in pixels of a cell, if rectangular cells are used. If circular cells are used, this indicates the number of degrees in each cell around the center point.
  PIX_HFRQ [0x0400] Indicates the number of cells along the height of the bitmap if rectangular cells are used. If circular cells are used, this indicates the number of cells present along the radius of the circle.
  PIX_HPER [0x0800] Indicates the height, in pixels of a cell, if rectangular cells are used. If circular cells are used, this indicates the radial length of each cell along the radius.

 

uDlgFlags User interface flags for this dialog, which determine the layout and action of the dialog. Possible values are:
  Value Meaning
  DLG_PIXELATE_SHOW_CONTEXTHELP [0x00000002] dialog should contain a context sensitive help icon.
  DLG_PIXELATE_SHOW_APPLY [0x00000080] Show the Apply button in the dialog. The dialog will not apply any effect unless the user presses the Apply button.
pfnHelpCallback Ignored.
pHelpCallBackUserData Ignored.
Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Common Dialog C++ Class Library Help