The AROS Archives(anonymous IP: 54.225.26.44,112) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu


 Categories

   o Audio (56)
   o Datatype (13)
   o Demo (26)
   o Development (197)
   o Document (18)
   o Driver (18)
   o Emulation (55)
   o Game (338)
   o Graphics (125)
   o Library (18)
   o Network (43)
   o Office (9)
   o Utility (172)
   o Video (18)

Total files: 1106

Full index file
Recent index file

Hosted by
aros-exec.org
 Readme for:  Datatype » Image » jpg_dtt_install.i386-aros.rar

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: 84  (Current version)
84  (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 :)) )










Copyright (c) 2005 The AROS Archives All Rights Reserved
Contact us at: archives@aros-exec.org