سلام مجدد
struct Image ReadImage(FILE *f , int height , int width)
{
struct Image pic;
pic.rgb = (struct RGB**) malloc(height*sizeof(void*));
pic.height = height;
pic.width = width;
for(i=height-1 ; i==0 ; i--)
{
pic.rgb[i] = (struct RGB*) malloc(width*sizeof(struct RGB));
fread(pic.rgb[i] , width , sizeof(struct RGB),f);
}
}