|
-
Jan 24th, 2003, 10:55 PM
#1
Thread Starter
Fanatic Member
texturebrush
im having trouble getting a picture to display where i want it to
i use this to load the bitmaps
VB Code:
For i = 0 To 4
TB(i) = New TextureBrush(New Bitmap("chip " & ChipValues(i) & " big.bmp"), New Rectangle(0, 0, 698, 698))
TB(i).ScaleTransform(75 / 698, 30 / 698)
Next
and this to draw it
VB Code:
For i = 0 To 4
m_DC.FillEllipse(TB(i), New Rectangle(75 * i + 10, 700, 80, 30))
Next
and the chip ends up tiling inside the ellipse instead of being centered, i even tried doing TB(i).TranslateTransform(10, 15) and it wouldn't move the chips. Anyone know the proper way to do this?
The human brain cannot hold all of the knowledge that exists in this world, but it can hold pointers to that knowledge.
-
Jan 24th, 2003, 11:05 PM
#2
posting more code would help
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Jan 25th, 2003, 12:24 AM
#3
Thread Starter
Fanatic Member
those are the only lines of code that go with this, its just a test setup for me to figure out how to do this and i can't seem to get it right
The human brain cannot hold all of the knowledge that exists in this world, but it can hold pointers to that knowledge.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|