Methods
Rotate90Rotates the
image 90 degrees from its current location.
[Back to Top]
Rotate180
Rotates the image 180 degrees from its current location.
[Back to Top]
Rotate270
Rotates the image 270 degrees from its current location.
[Back to Top]
OrderedDither
Performs an ordered dither on the true color image.
[Back to Top]
ErrorDiffusionDither
Performs an error diffusion dither on the true color
image.
[Back to Top]
MedianCutQuant
Performs a median cut color reduction method on the true
color Image.
[Back to Top]
GetLastError
Returns the Last Error that the control encountered.
Error Values are:
0 - No Error
1 - Out of Memory
2 - No Image in Image File
3 - Image has been corrupted
4 - Image Type Not Supported
5 - Image Color Reduction Failed
6 - File Not Found
7 - Out of Virtual Address Space
8 - Error Mapping File
[Back to Top]
PrintImage
Prints the image with the FitType specified to the default printer.
[Back to Top]
Refresh
Refreshes and redraws the image.
[Back to Top]
VFPRefresh
Added so that Visual FoxPro users could see images at
run-time as well as design time. This was added because of a bug in the OLE
Container support built into Visual FoxPro.
[Back to Top]
AboutBox
Displays the about box for the control.
[Back to Top]
GetNumPCDResolutions
Returns the total number of resolutions present in the
current Photo CD image pack.
[Back to Top]
GetPCDResolutions
Returns the resolutions present in the specified Photo CD
image pack. The string returned contains 7 characters. Each character is
either a '1' or a '0'. If the character is '1', that
resolution is present in the file. If the character is '0', that resolution is not
present in the file. The positions for each resolution are:
0 - Base over 64
1 - Base over 16
2 - Base over 4
3 - Base
4 - 4 Base
5 - 16 Base
6 - 64 Base
For example, if this function returns the string "0111000", the following
resolutions are enclosed in the specified file:
- Base over 16
- Base over 4
- Base
[Back to Top]
RefreshPCDResolution
Changes the resolution of the loaded PCD file to the
resolution specified by the PCDResolution
property. If the specified resolution is not in the already loaded PCD file, the
image is unloaded and no new image is available.
[Back to Top]
CopyImageToClipboard
Copies the currently loaded image to the clipboard.
[Back to Top]
SaveAsBMP(filename)
Saves the currently loaded image to the specified filename
as a BMP file. Returns True on success, False on failure.
[Back to Top]
SaveAsPCX(filename)
Saves the currently loaded image to the specified filename
as a PCX file. Returns True on success, False on failure.
[Back to Top]
SaveAsJPEG(filename, quality)
Saves the currently loaded image to the specified filename
as a JPEG file using the quality value provided. The higher the value, the better
the quality. Returns True on success, False
on failure. Quality values are from 1 to 100.
[Back to Top]
SaveAsTIFF(filename)
Saves the currently loaded image to the specified filename
as a uncompressed TIFF file. Returns True on success, False on failure.
[Back to Top]
SaveAsTGA(filename)
Saves the currently loaded image to the specified filename
as a TGA file. Returns True on success, False on failure.
[Back to Top]
AdvPrintStartDoc(hDC,
bSupplyCancel, bShowPrintDialog)
Prepares the control to begin the advanced printing
feature. This feature is great for printing custom reports. The hDC
variable is the Device Context you wish to print to. The bSupplyCancel
variable is a bool that specifies if you want a cancel dialog shown to the user.
The bShowPrintDialog variable is a bool that indicates your desire to display the
printer selection dialog. If hDC is NULL or 0 and bShowPrintDialog is
FALSE, the default printer
will be used and no dialog will be presented to the user. If hDC contians a
value and bShowPrintDialog is FALSE, the supplied DC will be used for
printing. All other combinations of hDC and bShowPrintDialog result in
an error and False is returned.
Returns True on success, False on failure.
[Back to Top]
AdvPrintStartPage
Starts the first or next page on an advanced print.
This function can only be called after AdvPrintStartDoc
or AdvPrintEndPage. Returns True on
success, False on failure.
[Back to Top]
AdvPrintImagePrint(lLeft,
lTop, lRight, lBottom)
Prints the current image in the specified rectangle
specified by lLeft, lTop, lRight and lBottom. The units specified by the rectangle
must be the same as those specified by the device context. If lLeft, lTop, lRight
and lBottom are all 0, then the image is printed according to the
FitType specified as a property of the control on the entire surface of the device
context. Returns True on success, False on failure. This should only be called
after AdvPrintStartPage.
[Back to Top]
AdvPrintEndPage
Ends the currently printed page. This function can
only be called after AdvPrintStartDoc is
called. Returns True on success, and False on failure.
[Back to Top]
AdvPrintEndDoc
Ends the current advanced printing function. This
function must be called anytime AdvPrintStartDoc
is called in order to free the resources associated with printing. This is true even
if any of the previous advanced printing functions fail. The return value is True on
success and False on failure if AdvPrintStartPage
returns true, otherwise, the return value is undefined.
[Back to Top]
IsImageOnClipboard
Performs a check to see if the current data on the
clipboard is an image (CF_DIB or CF_ENHMETAFILE). Returns TRUE on
success, FALSE on failure.
[Back to Top]
CreateImageFromClipboard
Pastes the current clipboard image into the control.
Returns TRUE on success, FALSE on failure.
[Back to Top]
GetNumTIFFPages
Returns the number of TIFF pages present in the TIFF file
specified in the Picture or URLPicture
property.
[Back to Top]
RefreshTIFFPage
Display the page number specified by CurrentTIFFPage. If the specified page is not in
the already loaded TIFF file, the first page of the image is displayed.
[Back to Top]
PopulateFromHandle(HGLOBAL
hGlobal)
Populates the NED Image control from the data in the
hGlobal handle. Memory is not deleted after calling. The hGlobal memory
handle MUST contain an DIB. This function is useful for displaying images
from Digital Cameras.
[Back to Top]
StopDownload
This method can be called to stop an URLPicture
Internet transfer in progress.
[Back to Top] |