2 Replies - 316 Views - Last Post: 22 November 2011 - 05:02 PM Rate Topic: -----

#1 Jivancho22  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 22-November 11

Using Picture in a C progam

Posted 22 November 2011 - 04:37 PM

Hi I am doing a project for my programming class and it has to be done in C,but I have to include pictures and I want to change the size of the window size but for some reason it won't work, I have to use devc++ and the graphics.h library(requirements).

#include <stdio.h>
#include <stdlib.h>
#include <graphics.h>
#include <string.h>

void Iniciar_Interfaz(void)
{ 
  readimagefile("Pic1.jpg",20,200,200,400);
  readimagefile("Pic2.jpg",1140,200,1340,400);
  readimagefile("Drawing.jpg",1000,600,1340,700);
  readimagefile("logo.jpg",400,200,940,700); 
}
int main(  )
{ 
  initwindow( 1366, 768, "Invent" );
  Display();
  
  return 0;
}



I already have libbgi.a in the folder devcpp/lib and graphics.h in devcpp/include
-lbgi
-lgdi32
-lcomdlg32
-luuid
-loleaut32
-lole32
I already set up the parameters the picture are in the same folder as the program can someone tell me what i am doing wrong do I need to do something more???

Is This A Good Question/Topic? 0
  • +

Replies To: Using Picture in a C progam

#2 ruben7  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 2
  • Joined: 22-November 11

Re: Using Picture in a C progam

Posted 22 November 2011 - 04:52 PM

I might be wrong but I think graphic.h is outdated, why don't you try using gtk?
Was This Post Helpful? 1
  • +
  • -

#3 Jivancho22  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 22-November 11

Re: Using Picture in a C progam

Posted 22 November 2011 - 05:02 PM

You' Probably right but that's what I have to work with, he is kind of obsessed with devc++ and using c, he even won't let me use Code blocks
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1