Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
JPG Thumbnails
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00758418
Message ID:
00761088
Views:
24
Thanks Alexander!

Today I've had a chance to test your image class and it's just what I needed.

Thanks again,
Will

>>Can I please get a copy of your GDI+ image class? Currently working on an application requiring the same funtionality as Eric.
>
>Yes, of course. It already sent to your email. At present time there is no any description or help file. The list of available properties and methods is below:
>
>Properties:
>ImageFormat - format of image: "BMP", "JPEG", "TIFF" etc. (read only)
>PixelFormat - pixel format of image, for example "24bppRGB" (read/write)
>ImageWidth - width of image (read only)
>ImageHeight - height of image (read only)
>HorizontalResolution - horizontal resolution in dpi (read/write)
>VerticalResolution - vertical resolution in dpi (read/write)
>
>Methods:
>Create(tnWidth, tnHeight, tcPixelFormat) - creates an empty image object
>Load(tcFileName) - loads an image from file
>FromResource(tcFileName, tcBitmapName) - loads an image from bitmap resource in EXE/DLL file (by name - img.FromResource("dxdiag.exe", "DIRECTX"), or by number - img.FromResource("shell32.dll", "#309"))
>FromPicture(toPicture) - creates an image object from Picture object
>GetPicture() - returns Picture object
>FromClipboard() - creates an image object from clipboard content
>ToClipboard() - copies an image to clipboard
>Thumbnail(tnWidth, tnHeight) - creates thumbnail
>SaveAsBMP(tcFileName)
>SaveAsJPEG(tcFileName, tnQuality, tnTransform)
>SaveAsGIF(tcFileName)
>SaveAsTIFF(tcFileName, tnCompress, tnColorDepth)
>SaveAsPNG(tcFileName)
>GetPixelColor(x, y) - returns color value of pixel
>GetPixelAlpha(x, y) - returns alpha value of pixel
>SetPixel(x, y, tnColor, tnAlpha) - sets color and alpha values of pixel
>Crop(x, y, tnWidth, tnHeight) - crops an image
>RotateFlip(rotateFlipType) - rotates and flips an image
>Resize(tnWidth, tnHeight, tnInterpolationMode) - resizes an image
>
>The constants for rotateFlipType, InterpolationMode etc. can be found in gpImage.h file.
>
>Alexander
Heavy Metal Pedal - click with care
Previous
Reply
Map
View

Click here to load this message in the networking platform