Welcome, Guest. Please login or register.

Author Topic: How to use BltBitmaprast port or other like it  (Read 3731 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: How to use BltBitmaprast port or other like it
« on: March 06, 2003, 09:29:49 AM »
Are you blitting from one bitmap to another or a section of the bitmap to somewhere else in the same bitmap?

When you create your bitmap, do you specify the BMF_DISPLAYABLE flag? Do yo make it a friend of an existing bitmap (the one you intend to blit to, for example)?

Post your suspect code section, that's always handy for seeing whats wrong :-)
int p; // A
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: How to use BltBitmaprast port or other like it
« Reply #1 on: March 06, 2003, 09:48:32 AM »
Ok, another question..

Are you using CyberGraphX?
int p; // A
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: How to use BltBitmaprast port or other like it
« Reply #2 on: March 06, 2003, 10:02:48 AM »
Quote

Karlos wrote:
Ok, another question..

Are you using CyberGraphX?


I ask because I found that the depth parameter you give to AllocBitMap() under cgx sometimes caused memory trashing when given as 8 and used with the BMF_SPECIALFMT option (when creating high/trucolour bitmaps).
Also, I never tried manually setting image data before - I always lock the bitmap, write the data and then unlock.

Still if your'e not using cgx, ignore me :-)
int p; // A
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: How to use BltBitmaprast port or other like it
« Reply #3 on: March 06, 2003, 10:23:28 AM »
Have to admit, I did think the way the image data was loaded looked suspect. What guarentee was there that it was the same format as the bitmap?


I only got into gfx coding post BVision :-) so I tend to concentrate on gfx-card only stuff...
int p; // A