English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. Blitz Basic

 
 
Thread Tools
Old 07 February 2017, 23:21   #1
tolkien
AmigaMan
 
tolkien's Avatar
 
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 763
bitmap attributes

Hiz again.
Is there a way to know the attributes of a given bitmap?
I guess I can use Addr from the bitmap, peek its address and look to its newtype structure but I have no idea really how to do it.

Thanks mates.
tolkien is online now  
Old 08 February 2017, 01:35   #2
idrougge
Registered User
 
Join Date: Sep 2007
Location: Stockholm
Posts: 4,356
Code:
INCLUDE "Blitzlibs:bb2objtypes.bb"
*bm.bitmap = Addr Bitmap(1)
NPrint *bm\_height
NPrint *bm\_depth
idrougge is offline  
Old 08 February 2017, 07:33   #3
tolkien
AmigaMan
 
tolkien's Avatar
 
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 763
Oh yes!
Can't see now but I think I tried something very similar.

Is bb2objtypes.bb included with all.res? (I'm using amiblitz 2 atm)

Thanks so much idrougge!
tolkien is online now  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Directory hard drives with full support for file attributes FrodeSolheim support.FS-UAE 4 28 April 2013 04:24
file attributes amiga2 support.Apps 4 26 January 2012 03:34
Hidden, Pure file attributes Bloodwych support.Apps 10 10 December 2007 00:26
_LVOOpenScreen() Bitmap redblade Coders. General 2 02 October 2006 23:25
the bitmap bros are from the uk petza Nostalgia & memories 53 12 May 2006 16:08

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:46.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07353 seconds with 13 queries