mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-21 10:13:43 +03:00
0030068: Documentation - V3d_View::ToPixMap() description should clarify that method will redraw the View content before dump
This commit is contained in:
parent
343f7e4d34
commit
2382618330
@ -805,17 +805,21 @@ public:
|
|||||||
//! grid in <me>
|
//! grid in <me>
|
||||||
Standard_EXPORT void SetGridActivity (const Standard_Boolean aFlag);
|
Standard_EXPORT void SetGridActivity (const Standard_Boolean aFlag);
|
||||||
|
|
||||||
//! dump the full contents of the view at the same
|
//! Dumps the full contents of the View into the image file. This is an alias for ToPixMap() with Image_AlienPixMap.
|
||||||
//! scale in the file <theFile>. The file name
|
//! @param theFile destination image file (image format is determined by file extension like .png, .bmp, .jpg)
|
||||||
//! extension must be one of ".png",".bmp",".jpg",".gif".
|
//! @param theBufferType buffer to dump
|
||||||
//! Returns FALSE when the dump has failed
|
//! @return FALSE when the dump has failed
|
||||||
Standard_EXPORT Standard_Boolean Dump (const Standard_CString theFile, const Graphic3d_BufferType& theBufferType = Graphic3d_BT_RGB);
|
Standard_EXPORT Standard_Boolean Dump (const Standard_CString theFile, const Graphic3d_BufferType& theBufferType = Graphic3d_BT_RGB);
|
||||||
|
|
||||||
//! Dumps the full contents of the view to a pixmap with specified parameters.
|
//! Dumps the full contents of the view to a pixmap with specified parameters.
|
||||||
|
//! Internally this method calls Redraw() with an offscreen render buffer of requested target size (theWidth x theHeight),
|
||||||
|
//! so that there is no need resizing a window control for making a dump of different size.
|
||||||
Standard_EXPORT Standard_Boolean ToPixMap (Image_PixMap& theImage,
|
Standard_EXPORT Standard_Boolean ToPixMap (Image_PixMap& theImage,
|
||||||
const V3d_ImageDumpOptions& theParams);
|
const V3d_ImageDumpOptions& theParams);
|
||||||
|
|
||||||
//! Dumps the full contents of the view to a pixmap.
|
//! Dumps the full contents of the view to a pixmap.
|
||||||
|
//! Internally this method calls Redraw() with an offscreen render buffer of requested target size (theWidth x theHeight),
|
||||||
|
//! so that there is no need resizing a window control for making a dump of different size.
|
||||||
//! @param theImage target image, will be re-allocated to match theWidth x theHeight
|
//! @param theImage target image, will be re-allocated to match theWidth x theHeight
|
||||||
//! @param theWidth target image width
|
//! @param theWidth target image width
|
||||||
//! @param theHeight target image height
|
//! @param theHeight target image height
|
||||||
|
Loading…
x
Reference in New Issue
Block a user