BTW, I tried this and I got the picture little brighter....
VGA_R <= {2'b11, ROM_DATA};
VGA_B <= {2'b11, ROM_DATA};
VGA_G <= {2'b11, ROM_DATA};
Here is my Matlab file. I don't see anything wrong with ?!!
%% read the image and show it
name = 'anouv1';
img = imread(strcat(name,'.gif'));
g = im2double(img);
g = g/max(max(g));
rgb = cat(3,g,g,g);
imshow(rgb);
%% insert into 640 x 480 region
out = ones(480,640);
out(10+(1:460),90+(1:460)) = img;
imshow(out);
%% print pixels
x = out';
x = uint8(x(: ) );
fid = fopen(strcat(name,'.txt'),'w');
fprintf(fid,'%X ',x);
fclose(fid);
Many Thanks