yes, to draw a line between those points
chaitanya22
Posts
-
Joining pixels -
Joining pixelsI have set of cartesian coordinates, i plotted them on bitmap by using SetPixel(...);, and so then i would like to join all the pixels.
-
Joining pixelsHello, I would like to know, for joining two pixels in a bitmap. As i have set of pixels, so i need to join them.
-
Setting pixelsthank u for your reply, how could i use it for C coding?
-
Setting pixelsHow to set pixels in Bitmap? I created bitmap by using createbitmap(..), but i need to higlight the pixels at certain cordiantes like (20,20),(30,30).......How shooudl i proceed? -- modified at 6:42 Friday 24th March, 2006
-
BitmapAre u working on WIN32 console application?
-
Working with DLLHello, I do have one doubt. Iam at ppresent working with C programming in VC++ environment. I need to work with a DLL, is it possible to use for C coding also without any Dailog based file? or should i use in VC++ enviroment? -- modified at 5:21 Wednesday 22nd March, 2006
-
FilesHelo Mr. Kakan, Is it possible to do so 1 2 3 4 5 6 7 8 writing the new data in another next line???
-
Filesya thankyou, it is working!! Its appending from the end of the previous data file, like 1 // 1 2 3 4 .......one data output 2 3 4 5 //5 6 7 8.....another data output 6 7 8 if i would like to have as, 1 2 3 4 //as first data output nad the next file output should begin in new line as 1 5 2 6 3 7 4 8.. hwo could i proceed??i would like tos tart in new line again
-
Fileshi, I need to open an text file to save the output data from the machine, i could open the text file and could write the output data to the text file, but the problem is how could i save the previous test data output if i again run the program? file = fopen("output.txt", "w+"); ... fputs(txt, file); fputs("\n", file); If i run the program, i could write the data of the present running data output, i need to save the old output data for the checking the drift? Can i use rewind???? Thnaks in advance
-
conversion of Int to Charya, i have included
-
conversion of Int to Charactually, i would like to load the int array data which is obtained from a machine to a txt file, i could open the text file, but i couldnt write the data i,e int array to text file, its writing some junk values. int array[100];//am having an int array char txt[100];//would like to convert the numbers in int array to string and should be stored in txt array. for(i=0;i<=100;i++) {itoa(array[i],txt,10); fwrite(txt,1,strlen(txt),f);//f=fopen("data.txt", "w+"); }
-
conversion of Int to CharActually, am having an array of Int values, i would like to convert into char array, as i need to save this data in a text file. am using itoa(), but i couldne get the result. Can anybody could help me out?
-
txt fileits an int array[].
-
txt fileHow to write the output array to a text file?
-
appending chunks of BytesYes, Tahnk you for your answer. I got the solution.
-
for loop incrementingcan a FOr loop be incremented twice at a time? such as for(i=1; i<=100;i+2).. as i need to have only odd numbers. Is it correct?
-
appending chunks of Bytesif(count>0) memcpy(array,buffer, 213); for(int i=0;i<=length;i++) printf("%x", array[i]); if i do so, again its copying with chunks in between the data. as i should copy the buffer of count:2 to buffer of count:1, so am using array[i+lLength]=lData[i]; //from starting of next chunk for(int i=0;i<=length;i++) {printf("%x", array[i]);} is this correct???
-
appending chunks of BytesHello, am still having a problem with this appending. Am recieving data from a machine two times(i,e total lenght of recieving bytes:212) but am recieving them as length:x1 and length:x2)spliting into two chunks. count:1 //first chunk of data length:112//length si varying, not constant, say x1 0x65 0x66 0x67...... count:2// second chunk of data length:100//length si varying, not constant, say x2 0x23 0x40 0x46 0xcf.... How could i append the length of x2 bytes to x1, so that i should have total 212 bytes. i would be gald if anyone halps me out from this. BYTE buffer[1024]; BYTE array[1024];//the output data am recieving from machine is in buffer for(i=0;i<=lLength;i++) printf("#%x", buffer[i]); if(count>1) array[i]=buffer[i];//am assigning all the buffer values to array if count is greater than 1. "or" i can use memcpy() also, but there si no result; is it correct?? but i couldnt get append the whole data? could anyone plz help me for appending -- modified at 12:10 Thursday 9th March, 2006
-
memcat()Like memcpy(), is there any method for appending the array i,e memcat()....how could i use it???