Click here to Skip to main content
15,790,022 members
Home / Discussions / Graphics
   

Graphics

 
QuestionInfographics Pin
lopoivana28-Oct-19 0:19
lopoivana28-Oct-19 0:19 
AnswerRe: Infographics Pin
Richard MacCutchan28-Oct-19 0:20
mveRichard MacCutchan28-Oct-19 0:20 
QuestionCreate 2D graphics editor Pin
Member 1455869629-Aug-19 1:51
Member 1455869629-Aug-19 1:51 
AnswerRe: Create 2D graphics editor Pin
Richard MacCutchan29-Aug-19 3:33
mveRichard MacCutchan29-Aug-19 3:33 
GeneralRe: Create 2D graphics editor Pin
Chandigarh Girl3-Sep-19 0:36
Chandigarh Girl3-Sep-19 0:36 
AnswerRe: Create 2D graphics editor Pin
Regina Hawk2-Sep-19 0:47
Regina Hawk2-Sep-19 0:47 
QuestionShould a Web designer use coding or just PSD/XD Template Pin
Member 1456898628-Aug-19 8:59
Member 1456898628-Aug-19 8:59 
Questionopengl (openTK) Pin
dspdad0107-May-19 10:55
dspdad0107-May-19 10:55 
Using OpenTK in devStudio 15 and windows forms on my dell desktop.
When I render a color (eg red = 255, 0, 0, 255), and read the results back it is about, but not quite half of the written value, eg 127, 0, 0, 127.

private void GetHitMap()
        {
            // copy hitmap from screen
            IntPtr unmanagedPointer = Marshal.AllocHGlobal(_hitMap.Length);
            GL.ReadBuffer(ReadBufferMode.Back);
            GL.ReadPixels(0, 0, renderCanvas.Width, renderCanvas.Height, PixelFormat.Rgba, PixelType.Byte, unmanagedPointer);
            Marshal.Copy(unmanagedPointer, _hitMap, 0, _hitMap.Length);
            Marshal.FreeHGlobal(unmanagedPointer);
        }





On a laptop, running the same code, same extremely simple shaders, but different gpu, the red is sometime red on the screen, and sometimes 'half red' and the values I read back are sometimes not exactly half,
Using a framebuffer in opengl instead of Marshalling gives the same results.
All other colors and using r,g,b or any combination gives the same result.
I was planning to use 'designated colors' to identify objects, similar to a shadow map, but the colors are not consistent.

Is this a known or expected behavior? Is it fixable? Running out of things to look for.
AnswerRe: opengl (openTK) Pin
Gerry Schmitz7-May-19 12:22
mveGerry Schmitz7-May-19 12:22 
GeneralRe: opengl (openTK) Pin
dspdad0107-May-19 15:00
dspdad0107-May-19 15:00 
QuestionOpenGL GLFW/SDL emdeded into WinForms/WPF Pin
Member 1403803230-Oct-18 5:17
Member 1403803230-Oct-18 5:17 
QuestionHow do I convert iTextSharp text to outline (vectorize)? Pin
Jakob Farian Krarup6-Jun-18 20:38
Jakob Farian Krarup6-Jun-18 20:38 
AnswerRe: How do I convert iTextSharp text to outline (vectorize)? Pin
Jakob Farian Krarup8-Jun-18 3:05
Jakob Farian Krarup8-Jun-18 3:05 
AnswerRe: Graphics.FillPath( Brush, GraphicsPath ) does not fill a simple P Pin
Eddy Vluggen30-May-18 0:57
professionalEddy Vluggen30-May-18 0:57 
Question64 bit .NET CatmullRom method? Pin
primem0ver8-Feb-18 8:35
primem0ver8-Feb-18 8:35 
Questionc++ directx9 center background Pin
Korowai12-Nov-17 8:40
Korowai12-Nov-17 8:40 
QuestionFree html5 templates... Pin
Z@db@khsh18-Sep-17 21:40
Z@db@khsh18-Sep-17 21:40 
AnswerRe: Free html5 templates... Pin
User 418025420-Jun-18 13:39
User 418025420-Jun-18 13:39 
QuestionCan opengl memory fragment Pin
Joe Woodbury13-Jun-17 14:44
professionalJoe Woodbury13-Jun-17 14:44 
QuestionWin32 console programming Pin
Member 132421455-Jun-17 12:17
Member 132421455-Jun-17 12:17 
AnswerRe: Win32 console programming Pin
Richard MacCutchan5-Jun-17 22:39
mveRichard MacCutchan5-Jun-17 22:39 
QuestionLibrary for obtaining duration of video movies in various formats? Pin
kalberts24-May-17 0:03
kalberts24-May-17 0:03 
AnswerRe: Library for obtaining duration of video movies in various formats? Pin
Michael_Davies24-May-17 0:18
Michael_Davies24-May-17 0:18 
GeneralRe: Library for obtaining duration of video movies in various formats? Pin
kalberts24-May-17 1:41
kalberts24-May-17 1:41 
QuestionHow to use GDI to convert these SPRs and MAPs files to bmp files, so I can invoke LoadImage function to load the bmp files and render them on my window by invoking the BitBlt function Pin
EZCodeProject4-May-17 11:03
EZCodeProject4-May-17 11:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.