Search code examples
imagematlabuser-interfacegraphical-logo

Logo looks different after uploading


enter image description here

Hi, in the first picture you can see what logo I want to upload. But, after uploading it changes it's color specification a little bit, shown in the second picture (right down corner). It adds the black color. Could you please help me out?

The code I'm using:

axes(handles.axes13)
imshow('logo4.png')

enter image description here


Solution

  • The problem is in the original png. Here, the top of the logo is set as transparent while the bottom is white. So, when you plot the images using imshow, you have this effect. Either you change the logo png or you can pretend as this problem never existed by setting the background color as white when you load the image.

    logo4 = imread('logo4.png,'BackgroundColor',[1 1 1]);
    imshow(logo4)
    

    The problem is still there, it´s just someone else´s problem now.

    profit.