|
you can use directx or gdi +
tell me more about your question to help u .
|
|
|
|
|
install graphics drivers on ur pc
Raisal
|
|
|
|
|
I did not find in the OP's question that he / she was having general problems with the quality of his / her display. The OP made it very clear that when he / she loads an image with a 48x48 dimension that the image he / she loaded was of poor quality.
It is important that you understand the question before you post an absurd reply like you have just did. You should be ashamed of yourself.
|
|
|
|
|
An image with a dimension of 48x48 literally means that you have an image consisting of 48 * 48 pixels. If you load that image into a control with an Image property, and the said control's dimension are bigger than that of the image itself, the image will be stretched (zoomed) to fit the dimension of the control.
However, in a Picturebox you can control how an image is displayed - zoomed, stretched, centered, etc. As mentioned before, try and use a higher resolution image. Higher resolution means a higher number of pixels. That will give you an image file with a greater dimension. The control you are using the display the image (other than a picturebox) will fit the image according to its own dimensions and not that of the image.
Make sure that the control's dimensions are relative to that of the image to prevent the image from being distorted.
|
|
|
|
|
I want to know whether opcode can give me the messages besides triangle. As mesh defined in the opcode is consist of triangles, but most of my model is constructed using polygons, so before my collision qurey, I have to transform the polygons to triangles, but i want to know wether i could know which polygon the triangles detected are belong to. if the anwser is yes, how can i get the message?
I had got the resource from the OPCODE net address, and i also have read the mannual about the OPCODE, but as I wanted to learn some details about the OPCODE, I found it was difficult. And i had got the two projects "opcode" and "CDTestFramework" from that address. because i had not found the information about how to get which polygon the detected triangle is belong to in the user mannual. i hoped to find my anwser in the two projects above, but I find it was difficult to read the code in the two projects. if you had some experience about using OPCODE, i really wished you could give some suggestion about how to read the two projects. And as the most important one of my requests is to get the polygons, so if you know, can you tell me is there any manner i can get the polygons. If the answer is NO, i think I have to think about take us of other detection manners.
|
|
|
|
|
|
While, as i have not got some answers in the C/C++/MFC, i hope i can get some help in other discussions, I can not find is there any improper?
|
|
|
|
|
You have already been given the answer; reposting in other forums is not likely to change that.
Use the best guess
|
|
|
|
|
Im writing a paint program in openGL 3.0, it works fine so far
except that when I try and draw a square over another square it is drawn
behind it instead of on top of it. How can I fix this so that
I can draw on top of an image? Why would this happen?
C++
OpenGL3.0
|
|
|
|
|
Enable Depth test to draw objects beyond others.
glEnable( GL_DEPTH_TEST );
glDepthFunc( GL_LESS ); // Near objects will be displayed. object with z -3 displayed on top of object with z -4
If you are creating an app similar to MSPAINT, setup projection matrix with glOrtho().
glOrtho() is used because it creates an orthographic projection, therefore the size of rendered image of same size with different z value will be same.
Provide different z values for each objects, based on their z order in the screen.
ie, z value of the object drawn at first should be as small, say 1.
Then increase z value of each new objects.
Render code should be like this.
glDepthRange(-100, 100);
glClearDepth(100);
glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
glMatrixMode( GL_PROJECTION );
glLoadIdentity();
glOrtho(-20,20,-20,20,0, 100 );
glEnable( GL_DEPTH_TEST );
glDepthFunc( GL_LESS );
glMatrixMode( GL_MODELVIEW );
glLoadIdentity();
glColor3f(0,0,1);
glBegin( GL_TRIANGLES );
glVertex3f( 0,0, -3 );
glVertex3f( 1,1, -3 );
glVertex3f( 0,1, -3 );
glEnd();
glColor3f(1,0,0);
glBegin( GL_TRIANGLES );
glVertex3f( 0,1, -2 );
glVertex3f( 1,1, -2 );
glVertex3f( 1,0, -2 );
glEnd();
SwapBuffers( m_hDC );
|
|
|
|
|
Someone has inquired if <insert random="" computer="" device=""> will support gestures such as swipe. I've already written the code to reboot the device if you give it the middle finger
Seriously, I'm looking for articles and descriptions of the underlying technology and approach for implementing a page swipe. I can visualize that I'm working with off-screen images and moving in a column at a time, but this would seem quite tedious at the Win32 level (which is where I'm working).
Resource suggestions?
thanks
Charlie Gilley
<italic>You're going to tell me what I want to know, or I'm going to beat you to death in your own house.
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
What type of swipe? Touching the screen? In mid air?
|
|
|
|
|
There's my ignorance kicking in... what is a swipe?
I've become familiar with a couple of gestures - found a good article on wiki:
http://en.wikipedia.org/wiki/Multi-touch[^]
So, in the context of a gesture, a swipe would be a scroll or flick, as you would expect on your smart phone to move to the next page.
Charlie Gilley
<italic>You're going to tell me what I want to know, or I'm going to beat you to death in your own house.
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
I've been working heavily in Perceptual Computing for the last few months. A swipe is a single longer movement in any direction - in the case of PerC, this would be a swipe in mid air.
|
|
|
|
|
Fair enough. But if you do receive this "event", the application responds to it in some fashion. In the case of a smart phone, they might "smoothly scroll the page". And it's at that level I'm living in at the moment. I'm curious how it's generally implemented... the smooth scrolling or page animation if you prefer.
Charlie Gilley
<italic>You're going to tell me what I want to know, or I'm going to beat you to death in your own house.
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
Ah, I see what you're getting at. Well, it certainly depends on the development environment you are using. I use WPF, which provides inbuilt access to animation - I would simply hook into that. If you're using Win32, then you're going to have a lot more work because you're going to be hooked into GDI+.
|
|
|
|
|
I actually think I'll have to go below Win32. I have some algorithms worked up, and we'll see later this morning if the processor can keep up with what I need to do.
I suspect that most implementations have hardware acceleration of some sort to aid the process.
Charlie Gilley
<italic>You're going to tell me what I want to know, or I'm going to beat you to death in your own house.
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
They do, and that brings its own problems.
|
|
|
|
|
Hi all
I want Import 3D model in C# windows from aplication,
and rotating it.
Would you Help me, Please!
Thanks
|
|
|
|
|
Please don't crosspost[^].
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
|
Hi all.
I need to draw a thick line with SetPixel API. I search very, but can't find any open source algorithm (Bresenham algorithm is one pixel, murphy algorithm is for line with more than 3 pixel thick, ... ).
If you can please help me.
Notice that I can not use CPen and other facilities in windows. I should use SetPixel.
Excuse me for bad English.
Thanks.
|
|
|
|
|
Hello,
you can draw a filled rectangle and a filled circle at every end.
Uwe
|
|
|
|
|
You did read, that he has to build it on his own with setpixel? So the problem is he can't draw a rectangle.
------------------------------
Author of Primary ROleplaying SysTem
How do I take my coffee? Black as midnight on a moonless night.
War doesn't determine who's right. War determines who's left.
|
|
|
|
|
Some years ago (nearly ten) I adopted Xiaolin Wu's line algorithm for that. It's an antialiasing algorithm, but with little changes you can use it.
You can even do it on your own. When you draw, you got a virtual direction corresponding to an angle. You can turn 90° and paint the neighbor points.
------------------------------
Author of Primary ROleplaying SysTem
How do I take my coffee? Black as midnight on a moonless night.
War doesn't determine who's right. War determines who's left.
|
|
|
|