#include "ltwrappr.h"
virtual L_INT LFile::WriteFileTransforms(pTransforms, nFlags=0, pSaveFileOption=NULL)
pFILETRANSFORMS pTransforms; |
pointer to a transform structure |
L_INT nFlags; |
flag that indicates how the image will be viewed |
pSAVEFILEOPTION pSaveFileOption; |
pointer to optional extended save options |
Writes transforms to a FlashPix file.
Parameter |
Description |
pTransforms |
Pointer to a transform structure |
nFlags |
Flag used to determine how the image will be viewed. If nFlags is set, LFile::WriteFileTransforms will translate and/or scale the image so that the image will fall entirely within the view frame. These transformations will be incorporated into the affine matrix stored with the image. For example, if an image is rotated, as seen below, part of the image now falls outside the view frame. In this case, if nFlag is set, the image will be translated and scaled by LFile::WriteFileTransforms so that the entire image falls within the view frame. The translation and scaling are incorporated into the matrix stored with the image. If nFlags is not set, the image would be appear as it does on the right, with part of the image "missing": |
pSaveFileOption |
Pointer to optional extended save options. Pass NULL to use the default save options. |
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Note: |
Page number is specified in the SAVEFILEOPTION structure. |
Also determines whether the image will be viewed "as is" when rotated, sheared or skewed, or whether the image will be translated and scaled such that the entire image may be viewed in its sheared, skewed or rotated state.
To load a FlashPix file with or without the transforms, see FlashPix Transforms Options.
For more information on transforms in general, refer to FILETRANSFORMS.
Required DLLs and Libraries
LTFIL For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
Win32, x64.
Functions: |
|
Topics: |
|
|
Raster Image Functions: Getting and Setting File Information |
|
|
|
|
|
For an example, refer to LFile::ReadFileTransforms.
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET