Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-26-2006, 11:48 AM
Junior Member
 
Join Date: Feb 2006
Posts: 7
Default Jpg quality

I am using SWFKit Pro to create a program with an image as the end product. This is the code for the image export:

var image = Image.captureMovie(0, 0, 230, 320);
var exportpath = FlashPlayer.getVariable("_root.exportpath");
image.save(exportpath);

Currently the jpgs that are exported are around 40kb. However, due to the nature of the project the images should be high quality of about 55kb-65kb. Can I adjust the quality of the jpg export?
Reply With Quote
  #2 (permalink)  
Old 02-26-2006, 01:12 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Jpg quality

Please try
Code:
image.save(exportpath, quality);
, where quality is the integer, whose value is between 0 to 255. The default value of quality is 100, and bigger value means better image quality.
Reply With Quote
  #3 (permalink)  
Old 02-26-2006, 09:52 PM
Junior Member
 
Join Date: Feb 2006
Posts: 7
Default Re:Jpg quality

: Can't believe I didn't notice that.

Very pleased that it's possible, thanks for the help
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:17 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.