Search:
Type: Posts; User: Cambalinho
Search:
Search took 0.12 seconds.
-
December 21st, 2020, 05:21 PM
-
December 21st, 2020, 04:45 PM
both zero
Dim s As Long s = GetDIBits(DestinationHDC, DestinationBitmap, 0, bm.bmHeight, gptr, bi, DIB_RGB_COLORS)
If (s = 0) Then
MsgBox "error " + vbTab + CStr(GetLastError())
...
-
December 20th, 2020, 01:50 PM
so far i did these code:
Friend Sub DrawImageRectanglePoints(DestinationHDC As Long, Points() As Position3D, WorldSize As Size3D) 'Points(0) is the Upper-Left
'Points(1) is the Upper-Right...
-
December 20th, 2020, 12:16 PM
using the GetCurrentObject() with HDC, i can get the actual HBitmap handle....but i need ask more 2 things:
1 - how can i get the BITMAPINFOHEADER from HBitmap?
2 - do i need create the DIB or the...
-
December 8th, 2020, 03:15 PM
i have these 2 functions for get pixels:
Public Sub GetImageData(ByRef SourcehBitmap As Long, ByRef SourceHDC As Long, ByRef ImageData() As Byte)
'Declare variables of the necessary bitmap...
-
November 19th, 2020, 04:36 PM
i use these functions for rotate a pixel...
1 - we get the pixel(the Z is zero) on RotationImage() and GetPixel();
2 - all angles(X, Y and Z) must be converted in Radians(the computer use Radians...
-
November 16th, 2020, 05:48 PM
heres the functions that i use for rotation 3D:
//RotateImage.h:
#include <iostream>
#include <windows.h>
#include <math.h>
struct PointAPI
{
-
November 4th, 2020, 03:30 PM
i can't find that option :(
PS: if i use a 'private' on UDT's and the function that have that parameters being 'private', i will not get that error... but the function must be used.. so must be...
-
November 4th, 2020, 03:04 PM
ok.. the type is public, but i get, now, an error on type:
Public Type POINTL X As Long
Y As Long
End Type
"compiler error: cannot define a public user-defined type within a private...
-
November 3rd, 2020, 04:49 PM
Public Sub DrawImageTrapezoid(ByRef Points() As POINTL, ByVal DestinationHDC As Long, ByVal TranspColor As Long)
"Compiler error:
Private enum and user defined types cannot be used as parameters ou...
-
November 2nd, 2020, 04:00 PM
heres the error message:
https://imgur.com/a/hOjFifj
and now the 'array parentheses':
Option Explicit
Private GDIsi As GDIPlusStartupInput, gToken As Long, hGraphics As Long, hBitmap As Long
-
November 1st, 2020, 07:23 AM
i created a class:
Option Explicit
Private GDIsi As GDIPlusStartupInput, gToken As Long, hGraphics As Long, hBitmap As Long
Private Type POINTL
X As Long
Y As Long
-
October 8th, 2020, 04:22 PM
no.... but i'm trying understand if the values from points() to texturepoints() are correct or not :(
i'm confused... the texture go to the 1st to the 2nd points without problems... i belive the 3...
-
October 8th, 2020, 03:09 PM
wow i found 1 problem: if the point have a negative value, i will get big numbers... ok these problem will be fixed. after i learn 1 math.
heres the values:
35907
but what i did wrong with values?
-
October 7th, 2020, 02:54 PM
VictorN: even not be C code... what you think about the image?
heres a pseud-rectangle(A to D):
B |-----------|C
A |-----------| D
"A pointer to an array of three points in logical space that...
-
October 4th, 2020, 03:45 PM
finally i'm using it, but i'm getting the wrong shape width..
'Get the four vectors
'Floor:
'Vector1: low-left
FillPosition3D NewPosition3D(0), Position.X, Position.Y,...
-
September 23rd, 2020, 09:27 AM
correct me anotherthing: even if i fix it, the PlgBlt() can be used on a plane? or the results will be not what we expected?
i mean drawed the texture.. like create a street
-
September 23rd, 2020, 07:58 AM
PlgBlt Me.hDC, points2, Picture1.hDC, 0, 0, Picture1.ScaleWidth, Picture1.ScaleHeight, &O0, &O0, &O0
error by ref argument....
-
September 23rd, 2020, 05:35 AM
how use\add GDIPLUS on VB6?
-
September 23rd, 2020, 05:15 AM
yes
Dim points2(4) As POINTAPI
points2(0) = Points(0)
points2(1) = Points(1)
points2(2) = Points(2)
points2(3) = Points(3)
PlgBlt Me.hDC, points2(0), Picture1.hDC, 0, 0,...
-
September 22nd, 2020, 04:07 PM
i'm trying now testing the function:
'Convert all 3D vectors to 2D vectors(for screen): Dim i As Integer
For i = 0 To 3
Points(i) = ConvertPositon3DTo2D(NewPosition3D(i),...
-
September 22nd, 2020, 03:27 PM
thank you so much for all... thank you
-
September 22nd, 2020, 03:07 PM
maybe i was confused.. nothing more.. sorry
-
September 22nd, 2020, 02:42 PM
i'm sorry, but you miss some words?
"... VB is the upper-right corner, and VC and the lower-left corner then it looks..."
-
September 22nd, 2020, 02:11 PM
is like:
(upper-left)VA - VB(upper-right)
(low-right)VC - VD(low-left)
|
Click Here to Expand Forum to Full Width
On-Demand Webinars (sponsored)
|