comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » BMP on widget_buttons
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
BMP on widget_buttons [message #68271] Fri, 16 October 2009 12:26 Go to previous message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
Hi guys,

Widget_buttons only accept bmp images so if I want a button with a jpg
image (for example) I've to convert it to BMP. I try to do that and my
final BMP has the following definition:

image=read_bmp('import.bmp', r, g, b)
help, image, r, g, b
IMAGE BYTE = Array[16, 16]
R BYTE = Array[256]
G BYTE = Array[256]
B BYTE = Array[256]

test=QUERY_BMP('import.bmp', info)

help, info, /str
** Structure <da333dc>, 7 tags, length=40, data length=36, refs=1:
CHANNELS LONG 1
DIMENSIONS LONG Array[2]
HAS_PALETTE INT 1
NUM_IMAGES LONG 1
IMAGE_INDEX LONG 0
PIXEL_TYPE INT 1
TYPE STRING 'BMP'

All of that seems ok but when I try to create the button I've an
error:
% WIDGET_BUTTON: Can't open bitmap file: import.bmp

I don't know why this errors happen. When I try to open original BMP
files that has the same definition, the button can be created so I'm
very confused.

Does somebode help me?

Regards,
nata
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Use of IDL_MemAllocPerm() to prevent memory fragmentation?
Next Topic: Too bad IDLffDXF does not work

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 06:13:11 PDT 2025

Total time taken to generate the page: 1.03795 seconds