Solved

change exported image size

Posted on 2004-08-02
1
173 Views
Last Modified: 2013-12-26
Hi Guys,

I want to save exported images (using Graphic exporter of Quick Time) for a size of 256x256 and a maximum data size of 20Kbits.

I tried GraphicsExportSetResolution and GraphicsExportSetTargetsize but it seems not working.

Any help please.

-BT
0
Comment
Question by:bachra04
1 Comment
 
LVL 4

Accepted Solution

by:
Alex Curylo earned 200 total points
ID: 11757743
You can't change the size in pixels using a graphic exporter. GraphicsExportSetResolution sets the dpi setting for those formats that support it, not the number of pixels. What you want to do for that is probably to draw your source image in whatever format it is into a GWorld of the target size, then call GraphicsExportSetInputGWorld with that.

As for target size, that's only available when exporting to JPEG, and there's a limit on how many times it will try recompressing before giving up. So don't consider that reliable.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question