93 Topics

Member Avatar for
Member Avatar for sri_213
Member Avatar for Rita_13

PR A PROGRAM IS REQUIRED TO READ FROM THE SCREEN THE LENGTH AND WIDTH FROM THE SCREEN THE LENGTH AND WIDTH OF A RECTANGULAR HOUSE BLOCK AND THE LENGTH AND WIDTH IF THE RECTANGULAR HOUSE THAT HAS BEEN BUILT ON THE BLOCK.THE ALGORITHM SHOULD THEN COMPUTE QND DISPLAY THE MOWING …

Member Avatar for Dani
-1
55
Member Avatar for Nicole_18

How to draw this cat with: Rendering fill Suitable primitives Aligned texture ![Screenshot_20220402-020429_Office.jpg](https://static.daniweb.com/attachments/4/e9a4f2eda3f42e689b0de42dcd9465ba.jpg)

1
314
Member Avatar for kevinvholloman

Hello. There are two programs. One creates and transfers the file into memory, the other reads it. The problem is that reading happens every other time. That is, the data, then no. Where is the mistake? Where to look? ![с++.jpg](https://static.daniweb.com/attachments/4/da8ffa8aa779029ea918edd53ea959b5.jpg)

Member Avatar for rproffitt
0
53
Member Avatar for Afrah

Write the main such that it reads two integers: Start and End and calls the void function of part ‘a’ in order to print the average of integers divisible by 3 in the range: [Start..End].

Member Avatar for rproffitt
0
48
Member Avatar for Noor_26

#include<conio.h> #include<cstdlib> #include<windows.h> using namespace std; oustrup"<<endl; cout<<"b) Dennis Ritchie"<<endl; cout<<"c) Ken Thompson"<<endl; cout<<"d) Brian Kernighan"<<endl; choice=getch(); if(choice=='A'||choice=='a'){ cout<<choice<<" is correct Answer"<<endl<<endl; st.marks++; } else{ cout<<choice<<" is incorrect Answer"<<endl; cout<<"The corrent answer is a"<<endl<<endl; } break; case 4: cout<<i+1<<") A language which has the capability to generate new data types …

Member Avatar for rproffitt
0
104
Member Avatar for cambalinho

see my MemoryDc and BitmapDC class's: class MemoryDC { private: HDC memoryDC; public: MemoryDC () { HDC hdc=GetDC(GetDesktopWindow()); memoryDC=CreateCompatibleDC(hdc); ReleaseDC(GetDesktopWindow(),hdc); } operator HDC() const { return memoryDC; } ~MemoryDC () { DeleteDC(memoryDC); } }; class BitmapDC { private: MemoryDC hdcbitmap; HGDIOBJ bitmapold; HBITMAP bitmapcurrent; int intwidth; int intheight; void init(int …

Member Avatar for triumphost
0
660
Member Avatar for GeorgiosMeNTUA

I have an image (frame.bmp, uncompressed, resolution 640*480, 3bit depth, 900KB size) stored at C:\Frame.bmp. I want to load it and put it in my program as an array a[N][M], N=479, M=639. After that to modify its elements (e.g thresholding) and create a new array B[479][639]. Finally, to store it …

Member Avatar for triumphost
0
7K
Member Avatar for William Hemsworth

Quite a while ago, I made [URL="http://www.daniweb.com/code/snippet217147.html"][B]this[/B][/URL] snippet. This code is basically the same, except that it adds animation. This method of blitting is very fast assuming you don't use a surface that's too large. On a 500 x 500 surface, I managed 350fps using only 0-1% of the cpu. …

Member Avatar for thetukiet
1
7K
Member Avatar for cambalinho

think in these way: the eyes have the blue color, the backcolor is blue. so how can i change the backcolor without change the image\eye? (these is just an exemple for trying explain)

Member Avatar for cambalinho
0
153
Member Avatar for prabhjitsw

I am new to Dev C++ and i am creating a program of a game of snake. In Dev C++ the graphics open in WINDOWS BGI screen whereas the text gets shown in Text console(Dos). 1)i want to know how can i clear the WINDOWS BGI screen ? 2)how can …

Member Avatar for amit_26
0
1K
Member Avatar for myk45

Hi All, I´m using a QTextBrowser to display an external html document (and its image resources) which is placed in the same directory as the application. Everything works fine except that images are not displayed properly. Instead of the actual picture there is a "missing image" icon. I tried different …

Member Avatar for NathanOliver
0
2K
Member Avatar for Masood_786

Hi All, **I have Gadmei UTV-382 USB Tv Tuner Card with XCEIV 4100 analog tuner, with cable Tv and Antenna(local Tv) support, no FM and no availability of I/Q samples**. In Directx GraphEdit i was able to run the device but on its default settings. **I want to dump the …

0
112
Member Avatar for skorm909

I have a c++ game that i made and i was wondering how i would make it so that i could add graphics, or just use the same basic concept of the game and just put those into a fresh game that i make with graphics. well my question is …

Member Avatar for BogdanCov
0
2K
Member Avatar for ganesh.naphade

I am using following gdiscreen() function which takes screenshot jpg image into buffer.I am sending this buffered image using sento() over UDP.I am unable to convert this char array data sent back into image .I appreciate any help you can provide void gdiscreen() { char buffer[61400]; using namespace Gdiplus; wchar_t …

Member Avatar for triumphost
0
368
Member Avatar for emorjon2

hi everybody! I really need your help here. I am developing a 3D game. so far I have came no further than finishing the 3D engine and print out some basic 3D-models. everything works okay, with exception of a bug, occuring after a couple of minutes of running time. it …

Member Avatar for mike_2000_17
0
566
Member Avatar for Smartboy33

Can anyone please tell me how to use the built in graphics in c++.Is there any tutorial on this?Which graphics will be suitable for using in c++?If there is any tutorial on this,please give the link. Thanks in advance.

Member Avatar for Moschops
0
545
Member Avatar for Smartboy33

Can anyone tell me which graphics library will be suitable for using in C++. I am new in C++. if there is any suitable library, please give me a tutorial link on that. Thanks in advance.

Member Avatar for Shiraz_1
0
424
Member Avatar for Labdabeta

Hello, Unfortunately I learnt OpenGL from NeHe tutorials, which means that all of my current methods for OpenGL-ing are extremely deprecated. I tried to find a more up-to-date tutorial, but all they seem to do is teach how to get really complicated stuff out of OpenGL. I just want to …

0
197
Member Avatar for TheNewKid

Hey everyone. I am working on learning how to make some different controls with win32 and at the moment I amt trying to make a combobox with small images next to each option. However when I run my code the options are there but the images are missing. Can anyone …

Member Avatar for mitrmkar
0
341
Member Avatar for Azmah

I'm looking for a really good 3D and/or Game engine to work with? I currently use C++, though I am willing to switch if the it's worthwhile :) Thanks in advance.

Member Avatar for 3dwalkyan
0
517
Member Avatar for one-unicorn

hello everyone, I seek help please to find a program c + + that can read images from different types bmp, jpeg, png and put the pixels values in a vector, modified pixels valus, then saved the picture change to a different location, I inform you that I am working …

Member Avatar for mike_2000_17
0
782
Member Avatar for otengkwaku

Hi guys, i am working on a project the need me to convert a compressed obj file using webgl utf-8 compresor [webgl-loader](https://code.google.com/p/webgl-loader/) back to it acsii version. I will like someone to point me in the rigth direction. i am comfused as to how to do the decompression

Member Avatar for LastMitch
0
268
Member Avatar for Labdabeta

Hello. I have been looking long and hard for an image library that meets these criteria that I have for pretty much any library I will use (with some obvious exceptions): A) Cross-Platform (If at all possible) B) Weightless (or nearly weightless) C) Stand-alone (I hate having to include DLLs …

Member Avatar for Labdabeta
0
238
Member Avatar for Johnathon332

hey guys, I am currently having problems with my OpenGL ES 2.0 application. I think I may have done my matrices wrong im not sure, but I cannot see my quad rendered to the screen. I believe it is something to do with the matrices I have set up which …

0
161
Member Avatar for sandz24

Can anyone please explain to me how to compute DCT? I'm finding it hard to understand it. ![2D-DCT](/attachments/large/3/2D-DCT.png "2D-DCT") ![dct1](/attachments/small/3/dct1.png "align-right") I attached the formulas the Discrete Cosine Transform (DCT) and it's Inverse-DCT.

Member Avatar for white_pearl
0
891
Member Avatar for ramy.merc

Hi programmers, I am a c# programmer but I have a very big project in C++ (Which I am not familiar with) and I am facing a big problem. As part of the project, I need to convert the image (any image of any type bmp,jpeg,png...etc) to grayscale using openMP. …

Member Avatar for Moschops
0
2K
Member Avatar for Thembelani

hie guys l have basic knowledge of c and c++.Recently we were given a project assignment on statistical modelling we have to implement it using c/c++.I researched on the libarries that l can use eg sdl,openGL,what l wld like to noe is it possible to code using gcc in linux, …

Member Avatar for mike_2000_17
0
1K
Member Avatar for Labdabeta

I have two bounding boxes defined by the following values: m1.min.x;//the min x value of model 1 m1.min.y;// " " y " " " " m1.min.z;// " " z " " " " m1.max.x;// " max x " " " " m1.max.y;// " " y " " " " m1.max.z;// …

Member Avatar for Labdabeta
0
666
Member Avatar for np complete

How can I manipulate images in C++? Is there any built in function? I googled and found that only bitmap images can be used, but why not jpeg and png and others ?

Member Avatar for mike_2000_17
0
253

The End.