Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~1K People Reached
Favorite Forums
Favorite Tags
Member Avatar for Soubhik

import javax.swing.JPanel; import javax.swing.ImageIcon; import java.awt.Image; import java.awt.Graphics; import java.awt.Graphics2D; class View extends JPanel { Image icon1,icon2; public View(){ ImageIcon i1=new ImageIcon(this.getClass().getResource("tile1.png"));//image I drew ImageIcon i2=new ImageIcon(this.getClass().getResource("tile2.png"));//image I downloaded icon1=i1.getImage(); icon2=i2.getImage(); } public void paint(Graphics g){ super.paint(g); Graphics2D g2=(Graphics2D)g; g2.drawImage(icon1,10,10,null);//this image is not displayed g2.drawImage(icon2,200,200,null);//this image is displayed } } …

Member Avatar for NormR1
0
177
Member Avatar for Soubhik

Hi Say I want to write a header file as an exercise. It will contain a bunch of functions and some constants. Q1. I noticed that the standard header files only contain the function prototypes. a> Where are the actual functions? b> How do I write a header file such …

Member Avatar for Soubhik
0
213
Member Avatar for cse.avinash

Hello Sir, I have an assignment to do, my question is:-- Given the set of integers, find the sum of all positive integers in it. [B][U]Input[/U][/B] t – number of test cases [t < 1000] On each of next t lines given a integer N [-1000 <= N <= 1000] …

Member Avatar for cse.avinash
-1
545
Member Avatar for jithuvsjithu

Hello firends , i am new here.. am interested in programming languages... here am sharing some useful graphics codes [B]1.solar system using C[/B] [CODE] #include<stdio.h> #include<graphics.h> #include<conio.h> #include<math.h> #include<stdlib.h> void main() { int gd=DETECT,gm; float i=0,j=100,me=75,ve=23,ma=105,ju=175,sa=10,ur=300,ne=200,pl=175,s=0; int x,y,k,si,sx=random(300),sy=random(400),X,Y,ss; unsigned int earth,moon,mercury,venus,mars,jupiter,saturn,uranus,neptune,pluto,sunsize; void *ear,*moo,*mer,*ven,*mar,*jup,*sat,*ura,*nep,*plu,*sun,*ships,*ships2; x=300; y=210; initgraph(&gd,&gm,"d:\\tc\\bgi"); setfillstyle(1,10); setcolor(2); fillellipse(50,50,13,13); earth=imagesize(35,35,65,65); …

Member Avatar for Soubhik
-1
178