Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
80 user(s) are online (52 user(s) are browsing Forums)

Members: 1
Guests: 79

Rob, more...

Headlines

Forum Index


Board index » All Posts (zzd10h)




Re: struct Bitmap to file ?
Just can't stay away
Just can't stay away


Thank Trixie,

I have tried

SaveDTObject(dtype, NULL, NULL,"RAM:x.JPG",DTWM_RAW,TAG_DONE);

with JPG and PNG, it save well a new file (rescaled) but as ILBM format :(

Go to top


Re: struct Bitmap to file ?
Just can't stay away
Just can't stay away


@LiveForIt
Thank for reply.
I'm using C.

For my program FastView, I rescale picture (JPG, PNG,...) by copying a Bitmap to another (with rescale).

What I would want is from a JPG (for example) to resave a new copy as JPG file.
Do you think that it's possible ?

@Thellier,
thank you,
Yes, I saw DTM_WRITE but I'm afraid that it will change the type of picture...

DTM_WRITE -- Write the selected area of the picture to a file as an
ILBM. If no area is selected, then the entire picture is
saved.

Go to top


struct Bitmap to file? - with DataTypes
Just can't stay away
Just can't stay away


Hello,
I'm looking for a function who can create an image file from a valid struct Bitmap.

Is a function of that type exists ?

Thank you, by advance, for you help



[edited thread title - Chris]


Edited by Chris on 2013/5/29 10:42:03
Go to top


Re: NetSurf development builds
Just can't stay away
Just can't stay away


Thanks
Hoping...

Go to top


Re: NetSurf development builds
Just can't stay away
Just can't stay away



Please, don't waste your time with my problem,
we must be not a lot of amigans to have a dual gfx setup...


Go to top


Re: NetSurf development builds
Just can't stay away
Just can't stay away


Just tried the last

NetSurf-gcc-jsoff-1092.lha

but, I have the same problem on my 32bits screen with dual GFX cards.

It still lags and take memory on my Radeon9250 card.

Go to top


Re: NetSurf development builds
Just can't stay away
Just can't stay away


Yes, of course, no problem,
mail me when you have the build ready.

Go to top


Re: NetSurf development builds
Just can't stay away
Just can't stay away


Hi Chris,

1) Just for info, I have encountered a lag problem with NetSurf 3.0 (json and jsoff version)

On my x1000 dual gfx setup (RadeonHD 6670 and Radeon 9250), Netsurf is verry laggy.
Mouse stops to respond for 1 second every 2 or 3 seconds.

I found the problem, it is my dual gfx cards setup.

When I launch NetSurf (1 or many instances is the same) it takes memory on my second cards (Radeon9250) even if my Workbench is on the RadeonHD card.

On the grab below,
the right SysMon shows the initial gfx memory consumption (0mb for Radeon9250)
The left SysMon shows that as soon that I launch one instance of NetSurf (json or jsoff) 8 mb of memory are consumed on the 9250 card.

http://zzd10h.amiga-ng.org/Divers/NetSurf_3.0_With_Radeon9250.jpg

Edit : Memory is well freed on both cards when I close NetSurf.

When I remove the 9250 card all is fine, NetSurf is fast and surf is nice !

http://zzd10h.amiga-ng.org/Divers/Net ... .0_Without_Radeon9250.jpg

2) Nothing related, but do you plan to support external program by contextual menus like on MUI-OWB ?

http://zzd10h.amiga-ng.org/Divers/NetSurf_3.0_ContextualMenu.jpg


Nevertheless, without my second cards, it's very speed and surf is very nice.
Bravo !


Edited by zzd10h on 2013/4/28 10:51:16
Go to top


Re: Interview with Guillaume Boesel (ITA/ENG)
Just can't stay away
Just can't stay away


Thank you Javier & Mathias

Go to top


Re: Interview with Guillaume Boesel (ITA/ENG)
Just can't stay away
Just can't stay away


Thank you Samir,
It was a pleasure :)

Go to top


Re: Context Menus and argument to WB command ?
Just can't stay away
Just can't stay away


Hello Context,
Do you have good news about the increase of the ContextsMenu buffer ?

Thank you.
Guillaume

Go to top


Re: Frogatto For AmigaOS4 beta release
Just can't stay away
Just can't stay away


For me, too, it runs very well on my x1000.

Magic : it doesn't work on your SAM440 ?

Go to top


Re: Amiga OS4 Videos by Hostcove
Just can't stay away
Just can't stay away



Very nice video of Freespace, I didn't know this great looking game.
Thank you.

Go to top


Re: MUI: How to update bitmap class's bitmap or SourceColors
Just can't stay away
Just can't stay away


Great, it works !

To copy in another Bitmap, I use

p96AllocBitMap and BltBitMapTags for no-alpha pictures

and

p96AllocBitMap and CompositeTags for alpha pictures
(some vertical lines with compositetags and no-alpha picture)

Iconification/deiconification works now (without the need of InitChange/ExitChange)

As usual, thank a lot Thore for your great help and for your availability for MUI (and C) newbies.


Go to top


Re: MUI: How to update bitmap class's bitmap or SourceColors
Just can't stay away
Just can't stay away


Thank you,
it's true that I dispose the DTobject just after to have load the Bitmap Object.

I will try to copy Bitmap with

p96AllocBitMap
and
CompositeTags

Go to top


Re: MUI: How to update bitmap class's bitmap or SourceColors
Just can't stay away
Just can't stay away


I create the MUI_Bitmap by passing to it a Bitmap struct created by Datatype.
You think that the struct Bitmap bitmap_vignette could be corrupted when I iconify/deiconify, it's ?

In my global variables :
struct BitMap *bitmap_vignette = NULL;

In my GUI build :

Child, Im_Data_bmp = BitmapObject, MUIA_FixWidth, 300, MUIA_FixHeight, 225, End,

and I load the Bitmap into this BitmapObject with.

loadVignette();

Object *dtype = NULL;
...
dtype = NewDTObject(nom_fichier,
PDTA_DestMode, PMODE_V43,
PDTA_Remap, TRUE,
PDTA_DitherQuality, 1,
PDTA_ScaleQuality, 0,
TAG_END);
...
res = GetDTAttrs(dtype,
PDTA_BitMapHeader, (ULONG)&bmh,
TAG_DONE);
...
res = GetDTAttrs(dtype,
PDTA_DestBitMap, &bitmap_vignette,
PDTA_BitMapHeader, (ULONG)&bmhd,
TAG_DONE);
if ((bitmap_vignette != NULL) && (res == 2))
{
SetAttrs(Im_Data_bmp, MUIA_Bitmap_Width, 300,MUIA_Bitmap_Height, 225, MUIA_Bitmap_UseFriend, TRUE, MUIA_Bitmap_Bitmap, bitmap_vignette, TAG_DONE);
}


Thanks

Go to top


Re: MUI: How to update bitmap class's bitmap or SourceColors
Just can't stay away
Just can't stay away


Hello Thore,
Thank for your reply.

Yes there are a lot of thing in the Serial line at the moment of this freeze
(I never think to use serial...)

http://zzd10h.amiga-ng.org/Divers/FastView_Deiconify_crashlog.txt

Thank you by advance if you have a clue (even if you don't have...)

Dump of context at 0xDFB077C0
Trap type: DSI exception
Machine State (raw): 0x100000000200F030
Machine State (verbose): [Hyper] [ExtInt on] [User] [FPU on] [IAT on] [DAT on]
Temporary stack trace:
#0: in module rtg.library+0x0005F110 (0x0241C3F0)
#1: in module rtg.library+0x00055B74 (0x02412E54)
#2: in module rtg.library+0x00019808 (0x023D6AE8)
#3: in module rtg.library+0x00067270 (0x02424550)
#4: in module rtg.library+0x00067398 (0x02424678)
#5: in module kernel+0x000495F0 (0x020495F0)
#6: in module layers.library.kmod+0x00000760 (0x021FAF40)
#7: in module rtg.library+0x0006932C (0x0242660C)
#8: in module rtg.library+0x00069CB8 (0x02426F98)
#9: in module graphics.library.kmod+0x00008D3C (0x023990FC)
...
...
...
Crashed process: FastView (0x5D86DC00)
DSI verbose error description: Access not found in hash or BAT (page fault)
Access was a load operation
0: 00000018 5B4F19F0 7C0903A6 5B4F1A10 00000000 0001735C 5B08D4C0 02B30078
8: 0000001C 60B0C82C 00000008 60AF54D0 6FF20150 00000008 0000000C 00000000
16: 00000008 606A5E10 02B30000 00000000 00000000 00000008 0000000C 5B4F1B32
24: 5CD73C40 0000012C 00000006 0000001C 5B4F19F8 00000007 0000012C 6FF20D4E
CR: 33555155 XER: A0000028 CTR: 0241C690 LR: 02412EA4
DSISR: 40000000 DAR: 60B0C82C


Edited by zzd10h on 2013/4/3 23:29:45
Go to top


Re: MUI: How to update bitmap class's bitmap or SourceColors
Just can't stay away
Just can't stay away


Hi,
I'm playing too with MUI Bitmap, contrary to you, I don't have problem to update my Bitmap but my program (and the OS) freezes when I deiconify my program.
Do you do something special to prepare the deiconification of your Bitmap ?
When I remove it, in iconification phase with REMMEMBER, and not readd it during deiconification, it works.

I have tried the InitCHange, ExitChange method, but it freezes, when I do the following in the deiconification

if (DoMethod(redrawGroupe, MUIM_Group_InitChange))
{
DoMethod(redrawGroupe, OM_REMMEMBER, Im_Data_bmp);
DoMethod(redrawGroupe, OM_REMMEMBER, rect2);
DoMethod(redrawGroupe, OM_REMMEMBER, STR_EnCours_Label);
DoMethod(redrawGroupe, OM_REMMEMBER, boutonGroupe);
SetAttrs(Im_Data_bmp, MUIA_Bitmap_Width, 300,MUIA_Bitmap_Height, 225, MUIA_Bitmap_Bitmap, bitmap_vignette, TAG_DONE);
DoMethod(redrawGroupe, OM_ADDMEMBER, Im_Data_bmp);
DoMethod(redrawGroupe, OM_ADDMEMBER, rect2);
DoMethod(redrawGroupe, OM_ADDMEMBER, STR_EnCours_Label);
DoMethod(redrawGroupe, OM_ADDMEMBER, boutonGroupe);
DoMethod(redrawGroupe, MUIM_Group_ExitChange);
}

I tried with or without the SetAttrs => KO
I tried without REMMEMER ADDMEMBER of Im_Data_bmp => no freeze (but no Bitmap)

Thank for your help

Go to top


Re: Sneak Preview Of SketchBlock 2.0 Screen Shot
Just can't stay away
Just can't stay away


Thank to you,
all works !

When I said "for dummy"... ;)

Go to top


Re: Sneak Preview Of SketchBlock 2.0 Screen Shot
Just can't stay away
Just can't stay away


Thank for reply

1) area selection works, great !

2) no succeed to use palette, no colouring difference with paint tool.
Will retry later if I need it, the normal (or advanced) color selection is largely enough for me.

3) For export, I thought about PNG or JPEG format. Because for now, to use the picture on another program, I have to export in ILBM format and reopen it with WarpView to transform it in JPEG or PNG.
Just a suggestion, because it's not a big pain

PS : Protect works.

Now, with selection tip, I will be able to use it more seriously ;)

Go to top



TopTop
« 1 ... 63 64 65 (66) 67 68 69 70 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project