CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Cambalinho

Page 1 of 55 1 2 3 4

Search: Search took 0.07 seconds; generated 8 minute(s) ago.

  1. Replies
    1
    Views
    1,206

    how read gif files?

    heres the function for read animated gif's:

    Public Function LoadGif(sFile As String, ByRef aImg() As StdPicture, ByRef imageHDC() As Long, ByRef picdelay() As Long) As Long Dim hFile As Long
    ...
  2. Replies
    0
    Views
    927

    VB6: how we use the Render() method?

    Public Sub LoadImage(strPath As String) If (Width > 0) Then DeleteImage
    Dim myPic As StdPicture
    Set myPic = LoadPicture(strPath)

    Width = myPic.Width
    Height = myPic.Height...
  3. Replies
    7
    Views
    3,285

    Re: how working with RayCasting?

    is like converting the left image(2D) to the right(3D):
    https://pythonprogramming.altervista.org/wp-content/uploads/2022/01/image-20.png
  4. Replies
    7
    Views
    3,285

    Re: how working with RayCasting?

    VitorN 'RayCasting' is 1 method for create 3D games...
    we have a 2D game... the RayCasting is 1(or more.. pixel a pixel) line (that we test, pixel a pixel) for see if hits a wall... if hits a wall...
  5. Replies
    5
    Views
    1,043

    Re: can i get the DIB pixels byref?

    'lplpVoid' is a reference... but i need VarPtr() for get the right values:

    ReDim bmpPtr(ImageWidth * ImageHeight - 1)

    hBitmap = CreateDIBSection(hdc, bmpInfoHeader, BI_RGB,...
  6. Replies
    5
    Views
    1,043

    Re: can i get the DIB pixels byref?

    VictorN if i have notifications activated, why i can't recive them? the mail it's Hotmail
  7. Replies
    5
    Views
    1,043

    Re: can i get the DIB pixels byref?

    Private Declare Function CreateDIBSection Lib "gdi32.dll" (ByVal hDC As Long, ByRef pBitmapInfo As Any, ByVal un As Long, ByRef lplpVoid As Long, ByVal handle As Long, ByVal dw As Long) As Long
    if...
  8. Replies
    5
    Views
    1,043

    can i get the DIB pixels byref?

    Private Declare Function CreateDIBSection Lib "gdi32.dll" (ByVal hDC As Long, ByRef pBitmapInfo As Any, ByVal un As Long, ByRef lplpVoid As Long, ByVal handle As Long, ByVal dw As Long) As Long
    ...
  9. Replies
    0
    Views
    709

    DIB's: how we get a pointer?

    the VB6 don't have pointers, but we can do similar using API functions.
    but seen these code:

    ReDim bmpPtr(ImageWidth * ImageHeight - 1)
    hBitmap = CreateDIBSection(hdc, bmpInfoHeader,...
  10. Replies
    7
    Views
    3,285

    Re: how working with RayCasting?

    heres the entire code:

    Option Explicit

    Private Declare Sub Sleep Lib "kernel32.dll" (ByVal dwMilliseconds As Long)


    Private Const PI As Double = 3.14159265358979
  11. Replies
    7
    Views
    3,285

    how working with RayCasting?

    how working with RayCasting?
    i have these code for RayCasting:

    Private Sub rayCasting() ' O RayAngle é o angulo atual do "raio".
    ' se ele começa olhando para angulo 90º e tem fov 60,...
  12. Replies
    3
    Views
    2,069

    Re: how use multithread with a loop?

    so true... i did a several questions on some forums. so sorry something..(some forums need more questions, they think that i can ask off-topic, but the problem is the same :( )
    but the big problem...
  13. Re: how pass a class pointer to a object class?

    2kaud: yes i'm... my problem was more than we think :(
    - the pointer seems not corrected. so no results :(
    so i did a simple complete test and worked. what i was trying to do was adding...
  14. Re: how pass a class pointer to a object class?

    https://forums.codeguru.com/image.php?u=394915&dateline=13669792732kaud getting the

    image instance pointer correctly for the multithread :(
  15. how pass a class pointer to a object class?

    i have a class image, with Pixel structure:

    class image
    {
    public:
    struct Pixel {
    image *img;
    float X = 0;
    float Y = 0;
    float Z = 0;
  16. Replies
    7
    Views
    4,115

    Re: Math: how move a line in same direction?

    hello. did i miss something?
  17. Replies
    7
    Views
    4,115

    Re: Math: how move a line in same direction?

    on line direction
  18. Replies
    7
    Views
    4,115

    Re: Math: how move a line in same direction?

    see these line with origin and destinity: LineSteps line(0,200,0,400,200,500);
    now i need move the line... how can i subtract 1 from (0,200,0), but continue with same line size or (400,200,500)...
  19. Replies
    7
    Views
    4,115

    Re: Math: how move a line in same direction?

    Victor i don't get notifications... can you see it please? is maybe because i'm login even not be here?
    i use the Hotmail mail.

    or i din't get the Translation or something is wrong :(
    what i...
  20. Replies
    7
    Views
    4,115

    Math: how move a line in same direction?

    heres a line:

    Origin:
    X0 = 0
    Y0 = 0
    Z0 = 0

    Destination:
    X1 = 100
    Y1 = 0
  21. Replies
    3
    Views
    2,069

    how use multithread with a loop?

    how can i add these 'for' on a multithread?

    for(int X=100, H=imgTexture.ImageHeight; X<1000; X++) {
    if(Speed >1000) Speed=1;
    ...
  22. Replies
    1
    Views
    698

    Games: how speed the movement?

    normaly we do:

    Speed =1;
    X+=Speed;
    frame by frame only moves 1 pixel.
    how can i make it move faster?
    if i do:

    Speed =5;
    X+=Speed;
  23. C++: how calculate the stretch and alpha blend on pixels?

    i have 2 pixels pointers(Destination and Source).
    1 - how can i calculate or get Alpha value on pixel?
    2 - how can i combine the 2 pixels for AlphaBlend?
    3 - how can i calculate for stretch the...
  24. Replies
    3
    Views
    1,866

    Re: C++: how get line points?

    see these image:
    36026
    https://forums.codeguru.com/image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJwAAAA/CAYAAAAVMKENAAABV0lEQVR4nO3cS26EMBRFQRNl/1smU9pBndDAxZ...
  25. Replies
    3
    Views
    1,866

    Re: C++: how get line points?

    hello VictorN.. sometime ;)
    1 - the line be printed more clear(mean the perfect line);
    2 - the line is printed using the pixels positions... the positions must be calculated. the 'GetLinePoints()'...
Results 1 to 25 of 1357
Page 1 of 55 1 2 3 4





Click Here to Expand Forum to Full Width

Featured