BMP256 not supported

조회 수: 3 (최근 30일)
Philip Chin
Philip Chin 2025년 7월 7일
댓글: Altaïr 2025년 7월 10일
I get this "Warning: Image format 'bmp256' will not be supported in a future release. " on my code when saving graphics to bmp format.
Is there a work around possible?
  댓글 수: 1
Altaïr
Altaïr 2025년 7월 10일
Here's what I did in MATLAB R2025a to export the current figure in bmp format. However, I did not face any warnings.
fig = getframe(gcf); % Capture the current figure as an image
rgbImage = fig.cdata; % Extract the RGB image data
% Convert to indexed image with 256 colors
[indexedImage, cmap] = rgb2ind(rgbImage, 256);
% Save as BMP file
imwrite(indexedImage, cmap, 'myfigure.bmp', 'bmp');
If you still face the warning please attach a simplified code that can be executed to reproduce the warning.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Printing and Saving에 대해 자세히 알아보기

제품


릴리스

R2025a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by