Gunakake C++ kanggo entuk maksimum gambar nganti BMP kacepetan konversi. Iki minangka solusi piranti lunak profesional lengkap kanggo ngimpor lan ngekspor gambar, BMP, lan akeh format dokumen liyane nggunakake C++.
Kudu ngowahi gambar dadi BMP gambar kanthi program? Kanthi Aspose.Words for C++ pangembang bisa gampang ngowahi gambar menyang BMP format gambar mung sawetara baris C++ kode.
Modern document-processing C++ API nggawe BMP saka gambar kanthi kacepetan dhuwur. Nguji kualitas gambar menyang BMP langsung ing browser. C++ kuat ngidini ngowahi gambar akeh format gambar populer.
Conto ing ngisor iki nduduhake carane ngowahi gambar dadi BMP gambar ing C++.
Tindakake langkah sing gampang kanggo nguripake gambar file menyang BMP format grafis. Waca gambar saka drive lokal, banjur simpen minangka BMP, nemtokake format gambar sing dibutuhake dening extension BMP Kanggo loro gambar maca lan BMP nulis sampeyan bisa nggunakake jeneng berkas kanthi qualified. Konten grafis output BMP bakal padha karo gambar file.
dotnet add package Aspose.Words.Cpp
Nyalin
using namespace Aspose::Words;
auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);
auto shape = builder->InsertImage(u"Input.png");
shape->GetShapeRenderer()->Save(u"Output.bmp", MakeObject<ImageSaveOptions>(SaveFormat::Bmp));
using namespace Aspose::Words;
auto doc = MakeObject<Document>(u"Input.png");
doc->Save(u"Output.bmp");
using namespace Aspose::Words;
auto doc = MakeObject<Document>(u"Input.png");
for (int page = 0; page < doc->get_PageCount(); page++)
{
auto extractedPage = doc->ExtractPages(page, 1);
extractedPage->Save(String::Format(u"Output_{0}.bmp", page + 1));
}
using namespace Aspose::Words;
auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);
builder->InsertImage(u"Input.png");
doc->Save(u"Output.bmp");
using namespace Aspose::Words;
auto doc = MakeObject<Document>();
auto builder = MakeObject<DocumentBuilder>(doc);
auto shape = builder->InsertImage(u"Input.png");
shape->GetShapeRenderer()->Save(u"Output.bmp", MakeObject<ImageSaveOptions>(SaveFormat::Svg));
Ana telung opsi kanggo nginstal Aspose.Words for C++ kanggo lingkungan pangembang. Pilih salah siji sing cocog karo kabutuhan sampeyan lan tindakake pandhuan langkah demi langkah:
Sampeyan bisa nggunakake perpustakaan C++ iki kanggo nggawe piranti lunak ing Microsoft Windows, Linux lan macOS:
Yen sampeyan nggawe piranti lunak kanggo Linux utawa macOS, priksa informasi babagan katergantungan perpustakaan tambahan (fontconfig lan paket sumber terbuka mesa-glu) ing Dokumentasi Produk.
Sampeyan bisa ngowahi gambar menyang akeh format file liyane: