Audio (104) Datatype (15) Demo (56) Development (247) Document (64) Driver (19) Emulation (62) Game (533) Graphics (229) Library (22) Network (63) Office (22) Utility (271) Video (18)
Total files: 1725
Full index file Recent index file
Part of Aros World Exec |
Alt Jpeg Datatype | Description: | An alternative Jpeg Datatype | Download: | jpg_dtt_install.i386-aros.rar (TIPS: Use the right click menu if your browser takes you back here all the time) | Size: | 134kb | Version: | 0.4 | Date: | 03 Oct 13 | Author: | Rebraist = Lellonapoli | Submitter: | lellonapoli | Category: | datatype/image | License: | APL | Distribute: | yes | FileID: | 1338 | | | Comments: | 0 | Snapshots: | 0 | Videos: | 0 | Downloads: | 264 (Current version) | | 264 (Accumulated) | Votes: | 0 (0/0) (30 days/7 days) | |
[Show comments] [Show snapshots] [Show videos] [Show content] [Replace file] Alternate Jpg Datatype.
BACKUP THE ORIGINAL ONES!!!
Alt jpg datatype is a modified version of the original aros version.It's more
compatible than the former (this reads b/w jpeg) and i've created two new tags
to handle scaling.PDTA_ScNumSize and PDTA_ScDenomSize.Both represent the
Numerator and Denominator of a fractional number in base 8.So if you want a full
size image you put both to 8.If you want a tiny one yout put 1 and 8.A 50% sized
datatype image (4/8) from a jpeg can be created this way.
datatype_obj = (Object*)NewDTObject((STRPTR)image_name,
DTA_SourceType , DTST_FILE,
PDTA_DestMode, PMODE_V43, PDTA_ScNumSize,4,
PDTA_ScDenomSize,8,
DTA_GroupID , GID_PICTURE,
OBP_Precision, PRECISION_EXACT,
PDTA_Remap, FALSE,
TAG_DONE);
datatypes in lha archive go to the following drawers:
jpeg.datatype in SYS:Classes/Datatypes/JPEG in SYS:Devs/Datatypes
Have fun!And let me know of the tons of bugs there will be.
The original version belongs to aros devs, so soon i'll upload the source of the
modified one (just let me make it a little cleaner :)) )
|