Solved

change exported image size

Posted on 2004-08-02
1
170 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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

744 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

18 Experts available now in Live!

Get 1:1 Help Now