Search found 4059 matches

by RASHAD
Sat Oct 23, 2021 5:56 am
Forum: Coding Questions
Topic: Loading Media
Replies: 14
Views: 335

Re: Loading Media

if you still missing the lib save the next using Notepad.exe as MemoryModule64.lib I am not sure if it will work ,I hope so You can search RSBasic website maybe !<arch> / 1373667707 0 237 ` à à à à à à à à à àMemoryFindResource MemoryFindResourceEx MemoryFreeLibrary MemoryGetProcAddress MemoryLoadLi...
by RASHAD
Sat Oct 23, 2021 5:23 am
Forum: Coding Questions
Topic: Loading Media
Replies: 14
Views: 335

Re: Loading Media

Now Inner in return after cleaning my coding post your finals :mrgreen:
Good luck
by RASHAD
Sat Oct 23, 2021 5:18 am
Forum: Coding Questions
Topic: Loading Media
Replies: 14
Views: 335

Re: Loading Media

4: Freeimage_commands64-318.pbi ;Freeimage_commands64-318.pbi Prototype FreeImage_AcquireMemory(a.i ,b.i ,c.i) Global FreeImage_AcquireMemory.FreeImage_AcquireMemory Prototype FreeImage_AdjustBrightness(a.i ,b.i ,c.i) Global FreeImage_AdjustBrightness.FreeImage_AdjustBrightness Prototype FreeImage_A...
by RASHAD
Sat Oct 23, 2021 5:17 am
Forum: Coding Questions
Topic: Loading Media
Replies: 14
Views: 335

Re: Loading Media

3 : FreeImage_header64.pbi ;FreeImage_header64.pbi #FREEIMAGE_COLORORDER_BGR = 0 #FREEIMAGE_COLORORDER_RGB = 1 #FREEIMAGE_MAJOR_VERSION = 3 #FREEIMAGE_MINOR_VERSION = 15 #FREEIMAGE_RELEASE_SERIAL = 4 #SEEK_SET = 0 #SEEK_CUR = 1 #SEEK_END = 2 #FILTER_BOX = 0 #FILTER_BICUBIC = 1 #FILTER_BILINEAR = 2 #...
by RASHAD
Sat Oct 23, 2021 5:15 am
Forum: Coding Questions
Topic: Loading Media
Replies: 14
Views: 335

Re: Loading Media

2 : MemoryModule_64.pbi ; MemoryModule_64.pbi ; * Memory DLL loading code ; * Version 0.0.3 ; * ; * Copyright (c) 2004-2013 by Joachim Bauch / mail@joachim-bauch.de ; * http://www.joachim-bauch.de ; * ; * The contents of this file are subject To the Mozilla Public License Version ; * 2.0 (the "...
by RASHAD
Sat Oct 23, 2021 5:14 am
Forum: Coding Questions
Topic: Loading Media
Replies: 14
Views: 335

Re: Loading Media

Hi Inner I am running the lib from memory 1 : Freeimage_Main_64.pb ;Freeimage_Main_64.pb Global hDLL,dib,DW.f,DH.f,width.f,height.f,FIF,InFile$,OutFile$,ext$,Scale.f,TransColor Global sp1,sp2,h,BColor,efFlag,parm1,parm2 XIncludeFile "MemoryModule_64.pbi" DataSection DLL: IncludeBinary &quo...
by RASHAD
Sat Oct 23, 2021 4:22 am
Forum: Coding Questions
Topic: Loading Media
Replies: 14
Views: 335

Re: Loading Media

Hi Inner
I will try to save you some time to go to straight to your coding
Next for x64 proto
Running it from memory
Follow the next snippets
by RASHAD
Sat Oct 23, 2021 2:35 am
Forum: Coding Questions
Topic: Loading Media
Replies: 14
Views: 335

Re: Loading Media

Hi Inner
There is no problem with ver 3.18 if you are using CallFunctionFast()
If you are using Prototype you have to change the Functions Address
You can use dllexp.exe from nir Sofer to do that
Of course I am taking about Windows do not know anything about Android :)

Good luck
by RASHAD
Mon Oct 18, 2021 5:24 pm
Forum: Coding Questions
Topic: Get dimensions of Icon
Replies: 8
Views: 404

Re: Get dimensions of Icon

Then use CopyImage_() with the Handle instead of LoadImage_()
by RASHAD
Mon Oct 18, 2021 5:20 pm
Forum: Coding Questions
Topic: Preserve transparency when copying icon on image
Replies: 12
Views: 521

Re: Preserve transparency when copying icon on image

Use CopyImage_() to get the Icon with the new width & height

Code: Select all

newiconH = CopyImage_(IconH,#IMAGE_ICON,newwidth,newheight,#LR_COPYDELETEORG)
by RASHAD
Mon Oct 18, 2021 4:42 pm
Forum: Coding Questions
Topic: Preserve transparency when copying icon on image
Replies: 12
Views: 521

Re: Preserve transparency when copying icon on image

Can you post a workable snippet ?
by RASHAD
Mon Oct 18, 2021 4:40 pm
Forum: Coding Questions
Topic: Get dimensions of Icon
Replies: 8
Views: 404

Re: Get dimensions of Icon

bitH = LoadImage_(0,GetTemporaryDirectory()+"test.xxx",#IMAGE_BITMAP,16,16,#LR_LOADFROMFILE ) If bitH Debug "Bitmap" Else iconH = LoadImage_(0,GetTemporaryDirectory()+"test.xxx",#IMAGE_ICON ,16,16,#LR_LOADFROMFILE ) If iconH Debug "Icon" EndIf EndIf
by RASHAD
Mon Oct 18, 2021 3:28 pm
Forum: Coding Questions
Topic: Get dimensions of Icon
Replies: 8
Views: 404

Re: Get dimensions of Icon

If you got the Handle of the Icon

Code: Select all

GetIconInfo_(hIcon, iconinfo.ICONINFO)
GetObject_(iconinfo\hbmMask, SizeOf(BITMAP), bitmap.BITMAP)

width = bitmap\bmWidth
height = bitmap\bmHeight
by RASHAD
Wed Oct 13, 2021 2:37 pm
Forum: Coding Questions
Topic: Transparent window title bar no longer selectable (Windows 10)
Replies: 5
Views: 708

Re: Transparent window title bar no longer selectable (Windows 10)

Change #MaskColor to any color but not Pure Black or Pure White EnableExplicit ExamineDesktops() #MaskColor = $010000 Define hWndInv = OpenWindow(0, 0, 0, DesktopWidth(0) / 2, DesktopHeight(0) / 2, "Transparent",#PB_Window_ScreenCentered| #PB_Window_TitleBar | #PB_Window_SystemMenu) SetWin...
by RASHAD
Tue Oct 12, 2021 10:37 am
Forum: Tricks 'n' Tips
Topic: Alpha Blend 32 bit Images w PB
Replies: 3
Views: 503

Re: Alpha Blend 32 bit Images w PB

My bad
I always think that Point() is equal to GetPixel_() which return RGB() not RGBA()