1
/* ============================================================
3
* This file is a part of digiKam project
4
* http://www.digikam.org
7
* Description : 8 to 16 bits color depth converter batch tool.
9
* Copyright (C) 2010 by Gilles Caulier <caulier dot gilles at gmail dot com>
11
* This program is free software; you can redistribute it
12
* and/or modify it under the terms of the GNU General
13
* Public License as published by the Free Software Foundation;
14
* either version 2, or (at your option)
17
* This program is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
* GNU General Public License for more details.
22
* ============================================================ */
24
#include "convert8to16.moc"
28
#include <kiconloader.h>
30
#include <kstandarddirs.h>
39
Convert8to16::Convert8to16(QObject* parent)
40
: BatchTool("Convert8to16", ColorTool, parent)
42
setToolTitle(i18n("Convert to 16 bits"));
43
setToolDescription(i18n("A tool to convert color depth from 8 to 16 bits."));
44
setToolIcon(KIcon(SmallIcon("depth8to16")));
45
setNoSettingsWidget();
48
Convert8to16::~Convert8to16()
52
bool Convert8to16::toolOperations()
54
if (!loadToDImg()) return false;
56
image().convertDepth(64);
58
return (savefromDImg());
61
} // namespace Digikam