(anonymous IP: 18.224.31.82,352) | ||||||||||||||
| ||||||||||||||
Audio (96) Datatype (15) Demo (50) Development (247) Document (62) Driver (19) Emulation (62) Game (529) Graphics (224) Library (22) Network (62) Office (21) Utility (250) Video (18) Total files: 1677 Full index file Recent index file Part of aros exec |
[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 :)) ) |
Copyright © 2005 - 2024 The AROS Archives All Rights Reserved |