The original image needs to be segmented down channel (RGBA) and then synthesized (RGB) for RGB processing.
Read_image_size (Image, 'D:/autocad.png') Height) dev_open_window_fit_image (Image, 0, 0, -1, -1, WindowHandle) set_display_font (WindowHandle, 16, 'mono', Count_channels (Image, Channels) if (Channels == 3) rgb1_to_gray (Image, If (Channels == 4) decompose4 (Image, ImageR, ImageG, ImageB, ImageA) compose3 (ImageR, ImageG, ImageB, MultiChannelImage) rgb1_to_gray (MultiChannelImage, Image) endifCopy the code