Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 328 results for
setpixel
- Page 1
VB6 - RayCasting: why my Vertical intersection is so big?
Programming
Software Development
2 Months Ago
by cambalinho
…/ ObjectSize) MapY = Fix((HorizY) / ObjectSize) A.
SetPixel
(Fix(HorizX)), (Fix(HorizY)), ColorConstants.vbCyan If LevelMap0(MapY…) / ObjectSize) MapY = Fix((VertY) / ObjectSize) A.
SetPixel
(Fix(VertX)), (Fix(VertY)), vbYellow If LevelMap0(MapY, MapX…
Re: VB6 - RayCasting: why my Vertical intersection is so big?
Programming
Software Development
2 Months Ago
by cambalinho
… vbBlue Then Exit Do End If 'A.
SetPixel
(Fix(HorizX)), (Fix(HorizY)), ColorConstants.vbCyan…= vbBlue Then Exit Do End If 'A.
SetPixel
(Fix(VertX)), (Fix(VertY)), vbYellow 'DoEvents…
Re: VB6 - RayCasting: why my Vertical intersection is so big?
Programming
Software Development
2 Months Ago
by rproffitt
For VertDist I would set a break on line 104 so I could examine the values in line 103. Also, could be a localization issue that the comma is used for the decimal point and the integer of the results might be 35 and 4548.
Re: VB6 - RayCasting: why my Vertical intersection is so big?
Programming
Software Development
2 Months Ago
by cambalinho
finally i found the problem is on these line: HorizDist = Sqr(((HorizX - Player.PosX) * (HorizX - Player.PosX)) + ((HorizY - Player.PosY) * (HorizY - Player.PosY))) 'works fine VertDist = Sqr(((VertX - Player.PosX)) * ((VertX - Player.PosX))) + (((VertY - Player.PosY)) * ((VertY - Player.PosY)))'calculation incorrect like …
Re: VB6 - RayCasting: why my Vertical intersection is so big?
Programming
Software Development
2 Months Ago
by cambalinho
not so easy :( WallDistance = WallDistance * Cos(Abs(RayRadians - Player.Radians)) 'avoiding the Fish Effect RayHeight = (ObjectSize / WallDistance) * 200 '320 is the width screen If (RayHeight > 200) Then RayHeight = 200 A.ForeColor vbBlue A.DrawLine 475 + 50 + RayCounts, 200 / 2 - …
Re: VB6 - RayCasting: why my Vertical intersection is so big?
Programming
Software Development
2 Months Ago
by cambalinho
i fix 1 error: ElseIf (KeyCode = vbKeyUp) Then If (LevelMap0(Fix((Player.PosY + Player.MoveY * Speed) / ObjectSize), Fix((Player.PosX + Player.MoveX * Speed) / ObjectSize)) <> vbBlue) Then 'and: ElseIf (KeyCode = vbKeyDown) Then If (LevelMap0(Fix((Player.PosY - Player.MoveY * Speed) / …
Re: VB6 - RayCasting: why my Vertical intersection is so big?
Programming
Software Development
2 Months Ago
by cambalinho
after several tests i fix it: Do While RayCounts < RayCount If (RayRadians > (2 * PI)) Then RayRadians = 0.001 i have more to update: 1 - win more performance\FPS; 2 - and trying avoid the 'on error resume next'(it's about the array dimensions): Private Sub DrawRays2() Dim AY As Double…
Re: Putpixel()
Programming
Software Development
16 Years Ago
by twomers
SetPixel
() perhaps :) [url]http://msdn2.microsoft.com/en-us/library/ms532304.aspx[/url]
Bersenham Circle Algorithm demonstrated using Win32 SetPixel
Programming
Software Development
13 Years Ago
by NicAx64
… hwnd) { sHwnd=hwnd; } static COLORREF sDefaultColor=RGB(255,0,0); /*
SetPixel
*/ void Circle_SetPixel(int x,int y,COLORREF& color=sDefaultColor…;Error",MB_OK|MB_ICONERROR); exit(0); } HDC hdc=GetDC(sHwnd);
SetPixel
(hdc,x,y,color); ReleaseDC(sHwnd,hdc); return; // NEVERREACH // } #define…
Re: Need help with getpixel & setpixel VB6
Programming
Software Development
16 Years Ago
by ~Paul~
Instead of using GetPixel and
SetPixel
use the GetDIBits and SetDIBits API they are much faster and more efficient ;)
Problems with class code and need help
Programming
Software Development
12 Years Ago
by CodyOebel
…WM_RBUTTONUP,0,MAKELPARAM(mx,my)); };
SetPixel
(hdcDC,mx,my,RedDot); }; };…,MAKELPARAM(mx,my)); break; }; };
SetPixel
(hdcDC,mx,my,RedDot); }; //////////////SELECTS …
FindWindow() not working on vista
Programming
Software Development
13 Years Ago
by CodyOebel
…)); SendMessage(hwndDC,WM_LBUTTONUP,0,MAKELPARAM(mx,my)); }; //
SetPixel
(hdcDC,mx,my,RedDot); }; }; if(i ==… SendMessage(hwndDC,WM_LBUTTONUP,0,MAKELPARAM(mx,my)); }; //
SetPixel
(hdcDC,mx,my,RedDot); }; }; if(i ==…
Problem with JS function
Programming
Web Development
11 Years Ago
by rem2
…[x][y] = paper.circle(x, y, 5); } } return arr; } function
setPixel
(x, y,arr) { var x = x * 10; y = (y + 4…
image procesing project
Programming
Software Development
15 Years Ago
by learning C
…shade2 + shade3 + shade4 + shade5 + shade5 + shade6 + shade7 )/10;
SetPixel
(drawing_context, col+50, row+50, RGB(shadeBlur, shadeBlur, shadeBlur)); } } … shadeSharp = (shade + shade0 + shade1 + shade2)*1.25;
SetPixel
(drawing_context, col+50, row+50, RGB(shadeSharp, shadeSharp, shadeSharp));…
OpenGL Bersenham Algo
Programming
Software Development
11 Years Ago
by gopi17
…; // initial F y = p1y; x = p1x; while (y <= p2y) {
setPixel
(x, y); if (F <= 0) { F += dx2; } else { x…
need some help to see whats wrong
Programming
Software Development
12 Years Ago
by blahbla
…; pixels = new boolean [width][height]; clear(); } void
setPixel
(int x, int y, boolean b) {pixels[x][y]…getWidth() && y < fb.getHeight()) fb.
setPixel
(x++, y++); y--; while (x < fb.…getWidth() && y >= 0) fb.
setPixel
(x++, y--); if (y < 0)y = 0…
How to draw a rectangle in jython
Programming
Software Development
11 Years Ago
by siga
…application, parses it with regular expressions and calls
setPixel
(x,y) in the Java application to draw… a rectangle. the Java program ,
setPixel
(x, y) is used to control the … event:") self.obj.
setPixel
(100,10) self.obj.
setPixel
(101,10) self.obj.
setPixel
(102,10) def move(…
Re: merging image
Programming
Software Development
15 Years Ago
by gbertoli3
…image = new Bitmap(image2); //Set the Cooresponding Pixel bitmap.
SetPixel
(image.Width + w, h, image.GetPixel(w, h));…image = new Bitmap(image3); //Set the Cooresponding Pixel bitmap.
SetPixel
(w, image.Height + h, image.GetPixel(w, h)); …
merging image
Programming
Software Development
16 Years Ago
by diyana
… all images are all white mergedImg.
SetPixel
(w, h, c); } else… = Color.FromArgb(0, 0, 0); mergedImg.
SetPixel
(w, h, c1); } } else {…
DirectDraw 8-bit color algorithm
Programming
Game Development
15 Years Ago
by death_oclock
…) + (b >> 6)) [/CODE] Here's my
setPixel
function: [CODE=c++] VOID
setPixel
(INT x, INT y, BYTE color) { lpScreen[x… BYTEs. And here is the implementation in WinMain: [CODE=c++]
setPixel
(0, 0, RGB_8BIT(255, 0, 0)); [/CODE] For some reason…
null pointer exception?!?!
Programming
Software Development
14 Years Ago
by gotm
…; x <= x2 ; x++) { iy = (int)Math.round(y);
setPixel
(x, iy, _file); y += m; } } // actually setting the correct pixel… in .XPM private void
setPixel
(int x, int iy, xpm _file) { _file.pixels[x][iy… exception occurs in line 63 when it goes to
setPixel
in the array. Here is my xpm class,…
Re: Help please? (beginning python)
Programming
Software Development
13 Years Ago
by TrustyTony
…) ## r,g,b = getRGB(pix1) ## color = makeColor(r,g,b) ##
setPixel
(pic2,x2+i,y2+j,color) def exchangeCell(pic1,cell1…) ## r,g,b = getRGB(pix1) ## color = makeColor(r,g,b) ##
setPixel
(pic2,x2+i,y2+j,color) pic = makePicture("atlantaBraves…
Win32 paintbrush
Programming
Software Development
12 Years Ago
by PixelExchange
… a few pixels here and there (with
SetPixel
(), but never in a straight, seamless line… works in Microsoft paint for example). Using
SetPixel
(), I created something that represents a paintbrush,… [CODE] WM_CREATE: global_dc = GetDC(hWnd); break; WM_MOUSEMOVE:
SetPixel
(global_dc, LOWORD(lParam), HIWORD(lParam), Color::black); break; [/…
sand game problem with graphics
Programming
Software Development
11 Years Ago
by nikolaos
…, int sourcey, int targetx, int targety) {
SetPixel
(sourcex, sourcey, new Color(255 , 255 , 255));//white
SetPixel
(targetx, targety, new Color(0 , 0… , 0));}//black void
SetPixel
(int x, int y, Color col) { g2.setColor(col); g2.…
PLPLOT - CodeBlocks?
Programming
Software Development
11 Years Ago
by daino
…c.obj):wingcc.c:(.text+0x1199): undefined reference to `
SetPixel
@16' C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc…c.obj):wingcc.c:(.text+0x21e0): undefined reference to `
SetPixel
@16' C:\plplot\src\libplplotd.a(wingcc.c.obj):…c.obj):wingcc.c:(.text+0x2285): undefined reference to `
SetPixel
@16' C:\plplot\src\libplplotd.a(wingcc.c.obj):…
Re: Help please? (beginning python)
Programming
Software Development
13 Years Ago
by TrustyTony
…b): print "show(",a,',',b,')' def
setPixel
(a,b,c,d): print "sP(",a…b = getRGB(pix1) color = makeColor(r,g,b)
setPixel
(pic2,x2+i,y2+j,color) def exchangeCell(pic1,cell1…b = getRGB(pix1) color = makeColor(r,g,b)
setPixel
(pic2,x2+i,y2+j,color) pic = makePicture("…
Re: Help please? (beginning python)
Programming
Software Development
13 Years Ago
by TrustyTony
…'-'*40 print b print a print '-'*40 def
setPixel
(a,b,c,d): print "sP(",…= getRGB(pix1) color = makeColor(r,g,b)
setPixel
(pic2,x2+i,y2+j,color) print '-'*40 def …b = getRGB(pix1) color = makeColor(r,g,b)
setPixel
(pic2,x2+i,y2+j,color) print '-'*40 pic …
Re: Windows form and windows.h?
Programming
Software Development
13 Years Ago
by yoni0505
… "C" unsigned long __stdcall
SetPixel
(struct HDC__ *,int,int,unsigned long)" (?
SetPixel
@@$$J216YGKPAUHDC__@@HHK@Z) referenced in function "… "C" unsigned long __stdcall
SetPixel
(struct HDC__ *,int,int,unsigned long)" (?
SetPixel
@@$$J216YGKPAUHDC__@@HHK@Z) referenced in function "…
Re: Raphael drawing performance
Programming
Web Development
11 Years Ago
by gon1387
… object of paper in your function "
setPixel
" and "unsetPixel" function
setPixel
(x, y,arr) { var x = x * 10… first init. Here's the changed code(removed init): function
setPixel
(x, y,arr) { var x = x * 10; y = (y + 4…
Re: pixel color changing
Programming
Software Development
15 Years Ago
by Nick Evan
…http://msdn.microsoft.com/en-us/library/aa887256.aspx"]
SetPixel
[/URL]() and [URL="http://crawlmsdn.microsoft.com/…-color? Then simply doing this: [code=cpp] labelledImage->
SetPixel
(r,c,v); [/code] should work. No need for… system::drawing::color for example: [code=cpp] labelledImage->
SetPixel
(0,0, Image::rgb(255,0,0)); [/code] would…
1
2
3
6
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC