Freeimage Documentation Here

Total Page:16

File Type:pdf, Size:1020Kb

Freeimage Documentation Here FreeImage a free, open source graphics library Documentation Library version 3.13.1 Contents Introduction 1 Foreword ............................................................................................................................... 1 Purpose of FreeImage ........................................................................................................... 1 Library reference .................................................................................................................. 2 Bitmap function reference 3 General functions .................................................................................................................. 3 FreeImage_Initialise ............................................................................................... 3 FreeImage_DeInitialise .......................................................................................... 3 FreeImage_GetVersion .......................................................................................... 4 FreeImage_GetCopyrightMessage ......................................................................... 4 FreeImage_SetOutputMessage ............................................................................... 4 Bitmap management functions ............................................................................................. 5 FreeImage_Allocate ............................................................................................... 6 FreeImage_AllocateT ............................................................................................. 6 FreeImage_Load .................................................................................................... 7 FreeImage_LoadU .................................................................................................. 8 FreeImage_LoadFromHandle ................................................................................ 8 FreeImage_Save ..................................................................................................... 9 FreeImage_SaveU ................................................................................................ 11 FreeImage_SaveToHandle ................................................................................... 11 FreeImage_Clone ................................................................................................. 11 FreeImage_Unload ............................................................................................... 12 Bitmap information functions ............................................................................................. 13 FreeImage_GetImageType ................................................................................... 13 FreeImage_GetColorsUsed .................................................................................. 13 FreeImage_GetBPP .............................................................................................. 13 FreeImage_GetWidth ........................................................................................... 13 FreeImage_GetHeight .......................................................................................... 13 FreeImage_GetLine .............................................................................................. 14 FreeImage_GetPitch ............................................................................................. 14 FreeImage_GetDIBSize ....................................................................................... 14 FreeImage_GetPalette .......................................................................................... 14 FreeImage_GetDotsPerMeterX ............................................................................ 15 FreeImage_GetDotsPerMeterY ............................................................................ 15 FreeImage_SetDotsPerMeterX ............................................................................ 15 FreeImage_SetDotsPerMeterY ............................................................................ 15 FreeImage_GetInfoHeader ................................................................................... 15 FreeImage_GetInfo .............................................................................................. 15 FreeImage_GetColorType .................................................................................... 15 FreeImage_GetRedMask ...................................................................................... 16 FreeImage_GetGreenMask .................................................................................. 16 FreeImage_GetBlueMask ..................................................................................... 16 FreeImage_GetTransparencyCount ..................................................................... 17 FreeImage_GetTransparencyTable ...................................................................... 17 FreeImage_SetTransparencyTable ....................................................................... 17 FreeImage_SetTransparent .................................................................................. 18 FreeImage 3.13.1 documentation List of tables • i FreeImage_IsTransparent ..................................................................................... 18 FreeImage_SetTransparentIndex ......................................................................... 18 FreeImage_GetTransparentIndex ......................................................................... 19 FreeImage_HasBackgroundColor ........................................................................ 19 FreeImage_GetBackgroundColor ........................................................................ 19 FreeImage_SetBackgroundColor ......................................................................... 19 Filetype functions ............................................................................................................... 20 FreeImage_GetFileType ...................................................................................... 20 FreeImage_GetFileTypeU .................................................................................... 20 FreeImage_GetFileTypeFromHandle .................................................................. 21 FreeImage_GetFileTypeFromMemory ................................................................ 21 Pixel access functions ......................................................................................................... 22 FreeImage_GetBits .............................................................................................. 23 FreeImage_GetScanLine ...................................................................................... 24 FreeImage_GetPixelIndex .................................................................................... 26 FreeImage_GetPixelColor .................................................................................... 26 FreeImage_SetPixelIndex .................................................................................... 26 FreeImage_SetPixelColor .................................................................................... 27 Conversion functions .......................................................................................................... 28 FreeImage_ConvertTo4Bits ................................................................................. 28 FreeImage_ConvertTo8Bits ................................................................................. 28 FreeImage_ConvertToGreyscale ......................................................................... 28 FreeImage_ConvertTo16Bits555 ......................................................................... 29 FreeImage_ConvertTo16Bits565 ......................................................................... 29 FreeImage_ConvertTo24Bits ............................................................................... 29 FreeImage_ConvertTo32Bits ............................................................................... 29 FreeImage_ColorQuantize ................................................................................... 29 FreeImage_ColorQuantizeEx ............................................................................... 30 FreeImage_Threshold .......................................................................................... 32 FreeImage_Dither ................................................................................................ 32 FreeImage_ConvertFromRawBits ........................................................................ 32 FreeImage_ConvertToRawBits ............................................................................ 33 FreeImage_ConvertToStandardType ................................................................... 33 FreeImage_ConvertToType ................................................................................. 34 FreeImage_ConvertToRGBF ............................................................................... 34 Tone mapping operators ..................................................................................................... 35 FreeImage_ToneMapping .................................................................................... 35 FreeImage_TmoDrago03 ..................................................................................... 35 FreeImage_TmoReinhard05 ................................................................................ 36 FreeImage_TmoReinhard05Ex
Recommended publications
  • Metadefender Core V4.12.2
    MetaDefender Core v4.12.2 © 2018 OPSWAT, Inc. All rights reserved. OPSWAT®, MetadefenderTM and the OPSWAT logo are trademarks of OPSWAT, Inc. All other trademarks, trade names, service marks, service names, and images mentioned and/or used herein belong to their respective owners. Table of Contents About This Guide 13 Key Features of Metadefender Core 14 1. Quick Start with Metadefender Core 15 1.1. Installation 15 Operating system invariant initial steps 15 Basic setup 16 1.1.1. Configuration wizard 16 1.2. License Activation 21 1.3. Scan Files with Metadefender Core 21 2. Installing or Upgrading Metadefender Core 22 2.1. Recommended System Requirements 22 System Requirements For Server 22 Browser Requirements for the Metadefender Core Management Console 24 2.2. Installing Metadefender 25 Installation 25 Installation notes 25 2.2.1. Installing Metadefender Core using command line 26 2.2.2. Installing Metadefender Core using the Install Wizard 27 2.3. Upgrading MetaDefender Core 27 Upgrading from MetaDefender Core 3.x 27 Upgrading from MetaDefender Core 4.x 28 2.4. Metadefender Core Licensing 28 2.4.1. Activating Metadefender Licenses 28 2.4.2. Checking Your Metadefender Core License 35 2.5. Performance and Load Estimation 36 What to know before reading the results: Some factors that affect performance 36 How test results are calculated 37 Test Reports 37 Performance Report - Multi-Scanning On Linux 37 Performance Report - Multi-Scanning On Windows 41 2.6. Special installation options 46 Use RAMDISK for the tempdirectory 46 3. Configuring Metadefender Core 50 3.1. Management Console 50 3.2.
    [Show full text]
  • Adobe Photoshop® TIFF Technical Note 3 April 8, 2005
    Adobe Photoshop® TIFF Technical Note 3 April 8, 2005 Adobe Photoshop® TIFF Technical Note 3 April 8, 2005 This document describes additions to the TIFF specification to improve support for floating point values. Readers are advised to cross reference terms and discussions found in this document with the TIFF 6.0 specification (TIFF6.pdf), the TIFF Technical Note for Adobe PageMaker® 6.0 (TIFF-PM6.pdf), and the File Formats Specification for Adobe Photoshop® (Photoshop File Formats.pdf). Page 1 of 5 Adobe Photoshop® TIFF Technical Note 3 April 8, 2005 16 and 24 bit Floating Point Values Introduction This section describes the format of floating point data with BitsPerSample of 16 and 24. Field: SampleFormat Tag: 339 (153.H) Type: SHORT Count: N = SamplesPerPixel Value: 3 = IEEE Floating point data Field: BitsPerSample Tag: 258 (102.H) Type: SHORT Count: N = SamplesPerPixel Value: 16 or 24 16 and 24 bit floating point values may be used to minimize file size versus traditional 32 bit or 64 bit floating point values. The loss of range and precision may be acceptable for many imaging applications. The 16 bit floating point format is designed to match the HALF data type used by OpenEXR and video graphics card vendors. Implementation 16 bit floating point values 16 bit floating point numbers have 1 sign bit, 5 exponent bits (biased by 16), and 10 mantissa bits. The interpretation of the sign, exponent and mantissa is analogous to IEEE-754 floating-point numbers. The 16 bit floating point format supports normalized and denormalized numbers, infinities and NANs (Not A Number).
    [Show full text]
  • Proexr Manual
    ProEXR Advanced OpenEXR plug-ins 1 ProEXR by Brendan Bolles Version 2.5 November 4, 2019 fnord software 159 Jasper Place San Francisco, CA 94133 www.fnordware.com For support, comments, feature requests, and insults, send email to [email protected] or participate in the After Effects email list, available through www.media-motion.tv. Plain English License Agreement These plug-ins are free! Use them, share them with your friends, include them on free CDs that ship with magazines, whatever you want. Just don’t sell them, please. And because they’re free, there is no warranty that they work well or work at all. They may crash your computer, erase all your work, get you fired from your job, sleep with your spouse, and otherwise ruin your life. So test first and use them at your own risk. But in the fortunate event that all that bad stuff doesn’t happen, enjoy! © 2007–2019 fnord. All rights reserved. 2 About ProEXR Industrial Light and Magic’s (ILM’s) OpenEXR format has quickly gained wide adoption in the high-end world of computer graphics. It’s now the preferred output format for most 3D renderers and is starting to become the standard for digital film scanning and printing too. But while many programs have basic support for the format, hardly any provide full access to all of its capabilities. And OpenEXR is still being developed!new compression strategies and other features are being added while some big application developers are not interested in keeping up. And that’s where ProEXR comes in.
    [Show full text]
  • Vcube User Manual
    Table of Contents Table of Contents Welcome 1 What's New in VCube 2? 2 VCube Overview 5 How to Update 6 VCube User Interface 7 Tool and Transport Bars 11 Tool Bar 12 Transport Bar 16 Quick Settings for SD and HD Video Formats 19 Quick Settings for SD 21 Quick Settings for HD 23 Control Pages 25 Files 26 VCube Compositions 29 OMF Compositions 32 AAF and Apple XML Compositions 34 Media Files 36 Import Composition and Export Changes 38 Import Layer 39 Convert Still Images 40 Locators 42 View 44 Clips Information 45 Shortcuts 49 Workspace 50 ii Table of Contents Edit 52 Main 53 Clips 54 Layers 56 Tracks 58 Settings 59 Presets 60 Formats & Synchro 62 Video I/O 67 Xena LS Plug-in 68 Xena LH Plug-in 70 Xena 2 Plug-in 72 Overlay 74 Preview 76 Composition 78 Disk & Network Cache Buffers 81 User Interface 82 Isis 83 Encryption 84 Media Settings 90 Timeline 91 Video Engine 92 Output View 93 Script View 95 Recording and Editing 96 Recording 97 Editing 103 Timeline 104 Editing Functions 106 Layer Controls 110 iii Table of Contents Motion Rectangles (PiP) 111 Selections and Groups 114 Watermark and Text 115 Watermark 116 Text Clip 117 Utility Clips 119 Countdown Clip 120 Wipe Clip 122 Video Test Patern Clip 123 Audio Tone Clip 124 Conforming and Reconforming 125 Conversions 134 Export 135 Convert Media Files 136 Render 140 Import Images Sequence 144 Media Wrapper 146 Frame Rate Management 147 Using the QuickTime File Format 148 Using the MXF File Format 150 Using the MPEG Codec 151 Basic Settings 153 Video Settings 154 Advanced Video Settings 157 Audio Settings 164 Multiplexer Settings 167 Synchronization 171 Connections for synchronization 174 iv Table of Contents The USB Sync Board Oprtion 175 USB Sync Board Installation 176 Specific Control Panels 177 Virtual Transport 180 Network 183 VCube Chasing Pyramix through Virtual Transport.
    [Show full text]
  • Scope and Issues in Alpha Compositing Technology
    International Journal of Innovative Research in Advanced Engineering (IJIRAE) ISSN: 2349-2763 Issue 12, Volume 2 (December 2015) www.ijirae.com Scope and Issues in Alpha Compositing Technology Sudipta Maji Asoke Nath M.Sc. Computer Science Department Of Computer Science Department Of Computer Science St. Xavier's College St. Xavier's College Abstract— Alpha compositing is the process of combining an image with a background to create the appearance of partial transparency. The combining operation takes advantage of an alpha channel, which basically determines how much of a source pixel's color information covers a destination pixel's color information. In this documentation, the authors discuss different types of alpha blending modes which are used to achieve this partial transparency. Alpha compositing is a process which is used to combine two images and there are the ranges of alpha value which is multiplied with the source pixel to generate target pixel.). Alpha values also range from 0 to 255, with 0 being completely transparent (i.e., 0% opaque) and 255 completely opaque (i.e., 100% opaque. Alpha blending is a way of mixing the colors of two images together to form a final image. In the preset paper the authors tried to give a comprehensive review on different issues and scope in Alpha Compositing technology. A good example of naturally occurring alpha blending is a rainbow over a waterfall. The rainbow as one image, and the background waterfall is another, then the final image can be formed by alpha blending the two together. Keywords— Alpha Compositing; pixel; RGB; Android; Blending Equation I.
    [Show full text]
  • R-Photo User's Manual
    User's Manual © R-Tools Technology Inc 2020. All rights reserved. www.r-tt.com © R-tools Technology Inc 2020. All rights reserved. No part of this User's Manual may be copied, altered, or transferred to, any other media without written, explicit consent from R-tools Technology Inc.. All brand or product names appearing herein are trademarks or registered trademarks of their respective holders. R-tools Technology Inc. has developed this User's Manual to the best of its knowledge, but does not guarantee that the program will fulfill all the desires of the user. No warranty is made in regard to specifications or features. R-tools Technology Inc. retains the right to make alterations to the content of this Manual without the obligation to inform third parties. Contents I Table of Contents I Start 1 II Quick Start Guide in 3 Steps 1 1 Step 1. Di.s..k.. .S..e..l.e..c..t.i.o..n.. .............................................................................................................. 1 2 Step 2. Fi.l.e..s.. .M..a..r..k.i.n..g.. ................................................................................................................ 4 3 Step 3. Re..c..o..v..e..r.y.. ...................................................................................................................... 6 III Features 9 1 File Sorti.n..g.. .............................................................................................................................. 9 2 File Sea.r.c..h.. ............................................................................................................................
    [Show full text]
  • Forcepoint DLP Supported File Formats and Size Limits
    Forcepoint DLP Supported File Formats and Size Limits Supported File Formats and Size Limits | Forcepoint DLP | v8.8.1 This article provides a list of the file formats that can be analyzed by Forcepoint DLP, file formats from which content and meta data can be extracted, and the file size limits for network, endpoint, and discovery functions. See: ● Supported File Formats ● File Size Limits © 2021 Forcepoint LLC Supported File Formats Supported File Formats and Size Limits | Forcepoint DLP | v8.8.1 The following tables lists the file formats supported by Forcepoint DLP. File formats are in alphabetical order by format group. ● Archive For mats, page 3 ● Backup Formats, page 7 ● Business Intelligence (BI) and Analysis Formats, page 8 ● Computer-Aided Design Formats, page 9 ● Cryptography Formats, page 12 ● Database Formats, page 14 ● Desktop publishing formats, page 16 ● eBook/Audio book formats, page 17 ● Executable formats, page 18 ● Font formats, page 20 ● Graphics formats - general, page 21 ● Graphics formats - vector graphics, page 26 ● Library formats, page 29 ● Log formats, page 30 ● Mail formats, page 31 ● Multimedia formats, page 32 ● Object formats, page 37 ● Presentation formats, page 38 ● Project management formats, page 40 ● Spreadsheet formats, page 41 ● Text and markup formats, page 43 ● Word processing formats, page 45 ● Miscellaneous formats, page 53 Supported file formats are added and updated frequently. Key to support tables Symbol Description Y The format is supported N The format is not supported P Partial metadata
    [Show full text]
  • Exrtoppm: Convert Openexr Files to Portable Pixmap Files
    exrtoppm: Convert OpenEXR files to Portable Pixmap files Gene Michael Stover created Sunday, 2006 September 10 updated Thursday, 2006 September 14 Copyright c 2006 Gene Michael Stover. All rights reserved. Permission to copy, store, & view this document unmodified & in its entirety is granted. Contents 1 What is this? 1 2 License 2 3 exrtoppm user manual 2 4 Installing the executable 3 5 Source code & executable 4 6 Notes 5 A Other File Formats 6 1 What is this? I needed a program to convert image files in the OpenEXR format to files in the Portable Pixmap format. So I wrote a program called exrtoppm. It resembles some of the other conversion programs which are part of the Netpbm suite of Portable (Bit, Gray, Pix)map programs. It is a command line program. I use it on Microsloth Winders; it should also work on unix-like systems, though I haven’t compiled it there, much less used it. This document includes the user documentation for the program, links to download the executalbe &/or the source code, installation instructions, & build instructions. 1 2 License One of the source code files, getopt.c, is in the public domain. I downloaded it from the TEX User’s Group web site. All other files, both source & executable, are copyrighted by Gene Michael Stover & released under the terms of the GNU General Public License [1]. Here’s a copy of the copyright notice & license agreement at the beginning of each source file: Copyright (c) 2006 Gene Michael Stover. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
    [Show full text]
  • Alpha Compositing Alpha Compositing the Alpha Channel
    Alpha Compositing • alpha compositing is the process of combining an image with a background to create the appearance of partial transparency. • In order to correctly combine these image elements, it is Alpha Compositing necessary to keep an associated matte for each element. • This matte contains the coverage information - the shape of the geometry being drawn • This allows us to distinguish between parts of the image where the geometry was actually drawn and other parts of the image which are empty. The Alpha Channel The Alpha Channel “A separate component is needed to retain the matte information, the extent of coverage of an element at a pixel. • To store this matte information, the concept of an alpha In a full colour rendering of an element, the RGB components retain only the channel was introduced by A. R. Smith (1970s) colour. In order to place the element over an arbitrary background, a mixing factor is required at every pixel to control the linear interpolation of foreground and • Porter and Duff then expanded this to give us the basic background colours. algebra of Compositing in the paper "Compositing Digital In general, there is no way to encode this component as part of the colour Images" in 1984. information. For anti-aliasing purposes, this mixing factor needs to be of comparable resolution to the colour channels. Let us call this an alpha channel, and let us treat an alpha of 0 to indicate no coverage, 1 to mean full coverage, with fractions corresponding to partial coverage.” Porter & Duff 84 Alpha Channel Pre multiplied alpha • In a 2D image element which stores a colour for each pixel, an additional value is “What is the meaning of the quadruple (r,g,b,a) at a pixel? stored in the alpha channel containing a value ranging from 0 to 1.
    [Show full text]
  • Openimageio Release 2.4.0
    OpenImageIO Release 2.4.0 Larry Gritz Sep 30, 2021 CONTENTS 1 Introduction 3 2 Image I/O API Helper Classes9 3 ImageOutput: Writing Images 41 4 ImageInput: Reading Images 69 5 Writing ImageIO Plugins 93 6 Bundled ImageIO Plugins 119 7 Cached Images 145 8 Texture Access: TextureSystem 159 9 ImageBuf: Image Buffers 183 10 ImageBufAlgo: Image Processing 201 11 Python Bindings 257 12 oiiotool: the OIIO Swiss Army Knife 305 13 Getting Image information With iinfo 365 14 Converting Image Formats With iconvert 369 15 Searching Image Metadata With igrep 375 16 Comparing Images With idiff 377 17 Making Tiled MIP-Map Texture Files With maketx or oiiotool 381 18 Metadata conventions 389 19 Glossary 403 Index 405 i ii OpenImageIO, Release 2.4.0 The code that implements OpenImageIO is licensed under the BSD 3-clause (also sometimes known as “new BSD” or “modified BSD”) license (https://github.com/OpenImageIO/oiio/blob/master/LICENSE.md): Copyright (c) 2008-present by Contributors to the OpenImageIO project. All Rights Reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
    [Show full text]
  • Enhanced Metadata Support
    CUMULUS Enhanced Metadata Support Cumulus supports all digital file formats because it captures core meta- Updated for Cumulus 10.0 data provided by the operating system, such as file name, format, size, modification date, etc. For the world’s most popular file formats, Cumulus Contents provides additional functionality or enhanced metadata support. This Standard Supports. 2 enables users to find files based on audio / video durations, fonts used in Audio / Video File Formats ..............2 layouts, full text of presentations and documents. Image / CAD / 3D File Formats ...........4 Office / Layout File Formats .............6 Summary Tags Size File Name To find out more about metadata – check out our webinar on metadata best tips and Format Fonts practices: and a lot more! Cumulus provides enhanced metadata support for the formats listed on the following Contact Information pages. Enhanced metadata support for other file types can be easily added to Cumulus by U.S. +1 (415) 495-6545 our partners or an internal development team, using Cumulus SDK. E.U. +49 (0) 30 390 485-0 [email protected] canto.com CUMULUS Enhanced Metadata Support 2/8 Standard Supports Write Back Mac OS Cumulus Read File Format File Ext Metadata to Notes File Type Filters Metadata Asset In order to preserve the integrity of metadata originally collected EXIF (Exchangeable Image File Format) — — • EXIF P — by the EXIF-enabled camera or capture device, Cumulus does not Digital Camera Support write-back EXIF metadata to assets. Cumulus can write-back XMP-compliant metadata to the file XMP (Extensible Metadata Platform) xmp TEXT • XMP P P formats indicated throughout this document by a 3 in the “Write Adobe CS Applications Support Back IPTC/XMP” columns.
    [Show full text]
  • CS6640 Computational Photography 15. Matting and Compositing
    CS6640 Computational Photography 15. Matting and compositing © 2012 Steve Marschner 1 Final projects • Flexible group size • This weekend: group yourselves and send me: a one-paragraph description of your idea if you are fixed on one one-sentence descriptions of 3 ideas if you are looking for one • Next week: project proposal one-page description plan for mid-project milestone • Before thanksgiving: milestone report • December 5 (day of scheduled final exam): final presentations Cornell CS6640 Fall 2012 2 Compositing ; DigitalDomain; vfxhq.com] DigitalDomain; ; Titanic [ Cornell CS4620 Spring 2008 • Lecture 17 © 2008 Steve Marschner • Foreground and background • How we compute new image varies with position use background use foreground [Chuang et al. / Corel] / et al. [Chuang • Therefore, need to store some kind of tag to say what parts of the image are of interest Cornell CS4620 Spring 2008 • Lecture 17 © 2008 Steve Marschner • Binary image mask • First idea: store one bit per pixel – answers question “is this pixel part of the foreground?” [Chuang et al. / Corel] / et al. [Chuang – causes jaggies similar to point-sampled rasterization – same problem, same solution: intermediate values Cornell CS4620 Spring 2008 • Lecture 17 © 2008 Steve Marschner • Partial pixel coverage • The problem: pixels near boundary are not strictly foreground or background – how to represent this simply? – interpolate boundary pixels between the fg. and bg. colors Cornell CS4620 Spring 2008 • Lecture 17 © 2008 Steve Marschner • Alpha compositing • Formalized in 1984 by Porter & Duff • Store fraction of pixel covered, called α A covers area α B shows through area (1 − α) – this exactly like a spatially varying crossfade • Convenient implementation – 8 more bits makes 32 – 2 multiplies + 1 add per pixel for compositing Cornell CS4620 Spring 2008 • Lecture 17 © 2008 Steve Marschner • Alpha compositing—example [Chuang et al.
    [Show full text]