Commit Graph

37 Commits

Author SHA1 Message Date
David Capello de4a7454ce Minor changes in png_format.cpp
* Renamed png_ptr -> png
* Renamed info_ptr -> info
* Added DestroyReadPng and DestroyWritePng
2019-09-23 10:57:23 -03:00
David Capello 4035952238 Do not check sRGB profile when reading/saving png files
Fixes https://community.aseprite.org/t/2656
2019-02-22 11:04:27 -03:00
David Capello ccae016878 Add options to load/save/convert/assign color profiles correctly (#1576) 2018-10-23 15:03:38 -03:00
David Capello a4d8fc52bf Manage color profiles (fix #1576) 2018-10-19 15:30:30 -03:00
David Capello 360172d7ba Fix .png loading progress (don't use uninitialized vars) 2018-08-15 13:44:48 -03:00
David Capello 9c79ea2b77 Rename app::Document -> Doc 2018-07-07 11:54:44 -03:00
David Capello b015fee8e0 Add a semi-transparent pixel (alpha=254) when export png for Twitter 2018-06-25 15:58:28 -03:00
David Capello d5cfe5123e win: Flush file content on disk after saving a sprite
Possible fix for this issue:
https://community.aseprite.org/t/file-full-of-null-bytes/31
2018-03-07 18:01:33 -03:00
David Capello dee6ff6c7e Refactor: Use new base::paths type for list of filenames/extensions 2018-02-21 11:06:58 -03:00
David Capello b5dc3d263e Add options to suppress specific warnings (fix #917) 2018-02-07 14:35:12 -03:00
David Capello 33507fd097 Don't save transparent information on full-opaque .png files (fix #1572) 2017-09-26 11:59:55 -03:00
David Capello 43db106db0 Rename docio to dio 2017-09-22 15:57:38 -03:00
David Capello 693a68844c New docio-lib to detect file format by content (fix #776) 2016-10-26 19:37:42 -03:00
David Capello 05e6147a1f Fix compilation error for old libpng versions 2016-08-30 12:26:30 -03:00
David Capello b40e942aed Don't check sRGB profiles with libpng 2016-08-29 18:24:03 -03:00
David Capello 5ecc356a41 Replace GPL license with the new EULA 2016-08-29 13:08:21 -03:00
David Capello 7750982af6 Support loading interlaced PNG files in png decoder (PngFormat::onLoad()) 2016-02-16 18:18:29 -03:00
David Capello 460d4b47c9 Add missing "override" modifier on some member functions
These ones were detected by clang-700.0.72
2015-09-30 16:34:43 -03:00
David Capello c30112ea10 Convert FileOp into a class 2015-09-29 11:27:00 -03:00
David Capello a5536359bb Fix loading png files without alpha but with a specific RGB or GRAY transparent color 2015-08-14 10:37:26 -03:00
David Capello 792502fc7b Remove invalid ASSERT() from PngFormat::onSave()
The assert can fail if we try to save an indexed image which contain
more than 256 colors.
2015-07-30 18:49:35 -03:00
David Capello c856faee3e Add support to load/save smaller palettes in png files 2015-06-30 18:16:10 -03:00
David Capello 8f62baedb3 Add support for 8-bit png files with alpha channel 2015-06-30 18:08:14 -03:00
David Capello 8c8abcdf32 Use sizeof() instead of png_sizeof() to avoid problems with specific libpng versions 2015-06-09 10:25:44 -03:00
David Capello 9fa26dc2f4 Fix problem saving transparent GIF and PNG files when the background layer is hidden 2015-04-21 13:20:36 -03:00
David Capello 22c3c4f20e Remove implicit SharedPtr conversion to T* 2015-04-02 20:42:43 -03:00
David Capello 2c6067f7e4 Update license of app/ module to GPLv2 2015-02-12 12:16:25 -03:00
David Capello 63995c6f0a Merge "raster" namespace into "doc" library 2014-10-20 22:21:31 -03:00
David Capello f5b5250482 Remove use of "register" modifier (it's deprecated) 2014-08-14 23:26:52 -03:00
David Capello 6824570c4b Remove base/override.h (use override keyword directly) 2014-08-14 23:07:47 -03:00
David Capello 91b0c2d071 Refactor: Remove "get" part for member functions that act like a simple getter
Additional change:
- Added Cel::image() to get the related image of the cel directly
2014-07-30 01:28:15 -03:00
David Capello 81ffb0c5bd Refactor: Create doc::Context and move some logic from app::Document to doc::Document
The objective of these changes is to create a more testable doc/logic API.

Included changes:
- Added doc::Context, doc::Documents (the old app::Documents),
  and doc::Sprites (and observers for each)
- Added raster::Sprite::createBasicSprite()
- Added doc::ColorMode (equal to raster::PixelFormat)
- Added some methods to doc::Document: context(), sprites(), sprite()
  (to replace app::Document::getSprite()), width/height(), colorMode(),
  name(), and close()
- Moved app::DocumentObserver/Event to doc::DocumentObserver/Event
- Replaced app::ContextObserver with doc::DocumentsObserver and a couple
  of signals.
- Renamed app::Context::getActiveDocument() with
  doc::Context::activeDocument()
- Renamed app::Context::getActiveLocation() with
  app::Context::activeLocation()
- Removed app::ContextObserverList
- Removed app::DocumentId (now we can use doc::ObjectId)
- Removed app::Context::getSettings()
2014-07-29 00:53:24 -03:00
David Capello 30af4e2620 Add trial-mode without save functionality 2014-04-10 00:33:28 -03:00
David Capello e5ba8e0922 Encapsulate Image implementation (private members, accessors, iterators, etc.)
- Rename _rgba/_graya to raster::rgba()/graya()
- Add raster::color_t type (alias for uint32_t)
- Rename raster::GfxObj to Object. And GfxObj::getType() to Object::type()
- Move conversion from raster::Image/Palette to Allegro BITMAP/RGB
  to raster/conversion_alleg.h file
- Add raster/color_scales.h
- Rename image_* functions to raster/primitives.h
- Reimplement ink processing with templates instead of macros
2013-11-09 19:59:05 -03:00
David Capello 5b252c30f5 Add support for Unicode file names on Windows
- Fixed issue #46: open .png files with Unicode chars
- Fixed issue #150: ability to uncompress program in folders w/Unicode chars
- Added base::utf8_iterator
- Added base::FileHandle
- Added base::get_app_path()
- Modified ui::KeyMessage::ascii() -> unicodeChar()
- Removed JI_NOTEXT flag
- Added app::XmlDocumentRef class and app::open_xml() function
- Added support for Unicode text exchange with Win32 clipboard
2013-10-14 19:58:11 -03:00
David Capello cde54f3682 Change BSD license to MIT in sublibraries and fix headers 2013-08-08 21:01:20 -03:00
David Capello c88f9b172b Refactor: Move app files to src/app subdirectory inside app namespace
- Add HAVE_CONFIG_H wrapper to #include "config.h"
- Removed widgets namespace (it's in app now)
- Move some functions from src/file/file.h to src/base/cfile.h
- Move Vector2d to base library
- Rename MenuItem2 to AppMenuItem
2013-08-05 21:20:19 -03:00