The AROS Archives(anonymous IP: 18.224.31.82,352) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu


 Categories

   o Audio (96)
   o Datatype (15)
   o Demo (50)
   o Development (247)
   o Document (62)
   o Driver (19)
   o Emulation (62)
   o Game (529)
   o Graphics (224)
   o Library (22)
   o Network (62)
   o Office (21)
   o Utility (250)
   o Video (18)

Total files: 1677

Full index file
Recent index file

Part of aros exec
 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: 259  (Current version)
259  (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 © 2005 - 2024 The AROS Archives All Rights Reserved