Solved

change exported image size

Posted on 2004-08-02
1
171 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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 the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

895 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now