34 const std::vector<uint32_t>** palette,
35 CFX_DIBAttribute* pAttribute) {
38 auto* ctx =
static_cast<CFX_BmpContext*>(pContext);
39 Status status = ctx->m_Bmp.ReadHeader();
43 *width = ctx->m_Bmp.width();
44 *height = ctx->m_Bmp.height();
45 *tb_flag = ctx->m_Bmp.img_tb_flag();
46 *components = ctx->m_Bmp.components();
47 *pal_num = ctx->m_Bmp.pal_num();
48 *palette = ctx->m_Bmp.palette();
49 pAttribute->m_wDPIUnit = CFX_DIBAttribute::kResUnitMeter;
50 pAttribute->m_nXDPI = ctx->m_Bmp.dpi_x();
51 pAttribute->m_nYDPI = ctx->m_Bmp.dpi_y();