Click here to Skip to main content
15,921,959 members
Home / Discussions / Graphics
   

Graphics

 
AnswerRe: Image appears blurred some times?? Pin
Christian Graus29-Jun-07 15:05
protectorChristian Graus29-Jun-07 15:05 
GeneralRe: Image appears blurred some times?? Pin
SandipG 1-Jul-07 18:55
SandipG 1-Jul-07 18:55 
QuestionAbout the GPU Gems 2 Pin
Tal Rasha's Guardianship27-Jun-07 17:17
Tal Rasha's Guardianship27-Jun-07 17:17 
AnswerRe: About the GPU Gems 2 Pin
Dave Kreskowiak29-Jun-07 13:05
mveDave Kreskowiak29-Jun-07 13:05 
AnswerRe: About the GPU Gems 2 Pin
El Corazon1-Jul-07 18:20
El Corazon1-Jul-07 18:20 
QuestionResolution of GDI+ bitmap from resource Pin
bozalina27-Jun-07 10:28
bozalina27-Jun-07 10:28 
AnswerRe: Resolution of GDI+ bitmap from resource Pin
Mark Salsbery27-Jun-07 15:11
Mark Salsbery27-Jun-07 15:11 
GeneralRe: Resolution of GDI+ bitmap from resource Pin
bozalina28-Jun-07 10:45
bozalina28-Jun-07 10:45 
No, mine is displayed at about 1/10th the size it should be.

I thought that my problem might be that the bitmap was created from a resource file bitmap. So, I tested just creating a bitmap by doing this:

Bitmap bmpTest(32, 32, PixelFormat32bppARGB);<br />
	BitmapData bitmapData;<br />
	bmpTest.LockBits(&Rect(0, 0, 32, 32),<br />
					ImageLockModeRead | ImageLockModeWrite,<br />
					PixelFormat32bppARGB,<br />
					&bitmapData);<br />
	UINT* pixels = (UINT*)bitmapData.Scan0;<br />
<br />
	for(UINT row = 0; row < 32; ++row)<br />
		for(UINT col = 0; col < 32; ++col)<br />
			pixels[row * bitmapData.Stride / 4 + col] = (row == 0 || row == 31 || col == 0 || col == 31) ? 0xFF000000 : 0xFFFFFFFF;<br />
<br />
	bmpTest.UnlockBits(&bitmapData);<br />
	TextureBrush *pBrush = new TextureBrush(&bmpTest);


But it still displays much too small. I'm thinking maybe it's a problem of page units, but if that's the case, then why do all my ellipses and rectangles show up in the right place, just with their texture-filled insides too small?
GeneralRe: Resolution of GDI+ bitmap from resource Pin
Mark Salsbery28-Jun-07 13:04
Mark Salsbery28-Jun-07 13:04 
GeneralRe: Resolution of GDI+ bitmap from resource Pin
bozalina29-Jun-07 6:42
bozalina29-Jun-07 6:42 
GeneralRe: Resolution of GDI+ bitmap from resource Pin
Mark Salsbery30-Jun-07 7:16
Mark Salsbery30-Jun-07 7:16 
QuestionWebcam Pin
genna9926-Jun-07 10:42
genna9926-Jun-07 10:42 
QuestionOpenGL, DirectX, WPF ?? Pin
BusyDeveloper21-Jun-07 21:55
BusyDeveloper21-Jun-07 21:55 
AnswerRe: OpenGL, DirectX, WPF ?? Pin
El Corazon26-Jun-07 5:47
El Corazon26-Jun-07 5:47 
QuestionZooming the line in OpenGL Pin
a_david12320-Jun-07 23:19
a_david12320-Jun-07 23:19 
QuestionHow to AddAlpha Values ?? Pin
SandipG 20-Jun-07 18:22
SandipG 20-Jun-07 18:22 
QuestionRe: How to AddAlpha Values ?? Pin
Mark Salsbery21-Jun-07 6:59
Mark Salsbery21-Jun-07 6:59 
AnswerRe: How to AddAlpha Values ?? Pin
SandipG 21-Jun-07 18:22
SandipG 21-Jun-07 18:22 
GeneralRe: How to AddAlpha Values ?? Pin
Mark Salsbery22-Jun-07 5:37
Mark Salsbery22-Jun-07 5:37 
GeneralRe: How to AddAlpha Values ?? Pin
SandipG 24-Jun-07 19:47
SandipG 24-Jun-07 19:47 
GeneralRe: How to AddAlpha Values ?? [modified] Pin
Mark Salsbery25-Jun-07 6:28
Mark Salsbery25-Jun-07 6:28 
QuestionImage Warp Function needed. Pin
SandipG 20-Jun-07 2:02
SandipG 20-Jun-07 2:02 
AnswerRe: Image Warp Function needed. Pin
Force Code20-Jun-07 6:39
Force Code20-Jun-07 6:39 
GeneralRe: Image Warp Function needed. Pin
SandipG 20-Jun-07 18:09
SandipG 20-Jun-07 18:09 
QuestionIntelligent Connectors Pin
whatitis17-Jun-07 19:12
whatitis17-Jun-07 19:12 

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.