Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying to resize an image
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01577727
Message ID:
01577738
Views:
61
Cesar

I really appreciate your help

I am not sure that resizing the image is going to help me - I have manually resized an image and it doesn't solve my problem

Let me explain if I may what I am trying to do

My client has placed an order over the phone for 3 packages to be sent to the same address - from my VFP system I can print out 3 labels to go on the packages size 4in wide by 5in deep (10x13cm). But I want to email the labels to him. So I attach the 3 images produced by running a VFP report. But when s the client prints the email attachments they print as a4 size images - too big for the package

I am stumped

Colin







>In my blog you will find tons of samples for dealing with GdiPlusX.
>
>Google for: VfpImaging + GdiPlusX + Resize + Images
>
>And you'll find this link: http://weblogs.foxite.com/vfpimaging/2012/03/16/resizing-images-with-gdiplusx/
>That provides 4 different techniques to resize your images in a flash, according to your needs, also allowing you to save in any GDI+ compatible format, such as BMP, PNG, GIF, JPEG, TIF or EMF
>
>
>>I have downloaded GDI and the following sample program
>>
>>But the program just hangs - what am I going wrong?
>>
>>** How To: RESIZE with Thumbnail Technique
>>**
>>
>>** Saves to a PNG file
>>
>>DO j:\gdi\System.App
>>
>>WITH _SCREEN.System.Drawing
>>
>>* Variables to store the new Image size
>>LOCAL lnWidth, lnHeight
>>STORE 60 TO lnWidth, lnHeight
>>
>>* Load the original Image
>>LOCAL loSrcImage as xfcBitmap
>>loSrcImage = .Bitmap.New(GETPICT())
>>
>>
>>
>>* Get the thumbnail with the desired size
>>LOCAL loThumbnail as xfcImage
>>loThumbnail = loSrcImage.GetThumbnailImage(198, 240)
>>
>>* Save the resized image as Png
>>loResized.Save("c:\Resized1.png", .Imaging.ImageFormat.Png)
>>
>>ENDWITH
>>RETURN
Specialist in Advertising, Marketing, especially Direct Marketing

I run courses in Business Management and Marketing
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform