Mirage Source
http://www.miragesource.net/forums/

Simple BitBlt Question
http://www.miragesource.net/forums/viewtopic.php?f=201&t=697
Page 1 of 1

Author:  halla [ Sat Oct 28, 2006 4:02 am ]
Post subject:  Simple BitBlt Question

Ok im working on the Item Editor part of my program I have it all working except showing the image of the item. I know how to blt a picbox but thats it.

So I just want to know all the code I need to have it blt the item image. I have the form from in the game so names are the same. I tried doing it the same way but it doesnt work. Plus I added DirectX mod but looks like a lot of stuff I dont need for this.

Could someone just post the code I need for it to open the items.bmp file and display the image of the item number selected.

THanks a lot.

Author:  Robin [ Sat Oct 28, 2006 11:39 am ]
Post subject: 

picItem.picture = loadpicture(picture path)
picItem.top = (item * 32) * -1

?

-Kite-

Author:  Misunderstood [ Sat Oct 28, 2006 1:48 pm ]
Post subject: 

That code is already in mirage. Its used to blt the item picture and the npc picture etc. Just look at that.

Author:  halla [ Sat Oct 28, 2006 6:25 pm ]
Post subject: 

Misunderstood wrote:
That code is already in mirage. Its used to blt the item picture and the npc picture etc. Just look at that.


I did I took the code from mirage... the directx mod... everything that I can see that I need... and it runs fine but it doesnt show any picture its just black.

Author:  Misunderstood [ Sat Oct 28, 2006 7:01 pm ]
Post subject: 

The code I'm referring to doesn't even involve anything that is in the directx mod.

I'm talking about what is used to blt the item picture and npc picture in their editors.

Author:  halla [ Sat Oct 28, 2006 7:10 pm ]
Post subject: 

BitBlt?

I have that too if you mean that.

Also I just want the code it would take to do that... so while adding it I can learn also.

I can blt to a picbox like I did in my snake game... but I just have the images there and then it blts them if needed. Its not getting something from a file or whatever.

Author:  Misunderstood [ Sat Oct 28, 2006 7:27 pm ]
Post subject: 

What do you have for bltblt exactly?

Author:  halla [ Sat Oct 28, 2006 8:39 pm ]
Post subject: 

Public Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long

Private Sub tmrPic_Timer()
BitBlt picPic.hDC, 0, 0, 32, 32, picItems.hDC, 0, 0, vbSrcCopy
End Sub

I just have 0's instead of the scrollbar value just to test getting it to show anything.

Author:  Misunderstood [ Sat Oct 28, 2006 9:31 pm ]
Post subject: 

Well then you don't have all code from MS.
Look at how MS actually gets the gfx in picItems...its called around when the form loads....

Now the way ms does it isn't ideal, or even a decent way, imo, but it works.

Author:  halla [ Sat Oct 28, 2006 9:51 pm ]
Post subject: 

I figured it out. I looked up a bitblt tutorial.

I think the problem was that it wasnt loading the the image right. I got that working on the form load and setting it. Then I had the other part right pretty much. A lot easier now I understand it.

Thanks for trying to help though.

Author:  wanai [ Tue Dec 14, 2021 11:46 am ]
Post subject:  Re: Simple BitBlt Question

audiobookkeepercottageneteyesvisioneyesvisionsfactoringfeefilmzonesgadwallgaffertapegageboardgagrulegallductgalvanometricgangforemangangwayplatformgarbagechutegardeningleavegascauterygashbucketgasreturngatedsweepgaugemodelgaussianfiltergearpitchdiameter
geartreatinggeneralizedanalysisgeneralprovisionsgeophysicalprobegeriatricnursegetintoaflapgetthebouncehabeascorpushabituatehackedbolthackworkerhadronicannihilationhaemagglutininhailsquallhairyspherehalforderfringehalfsiblingshallofresidencehaltstatehandcodinghandportedheadhandradarhandsfreetelephone
hangonparthaphazardwindinghardalloyteethhardasironhardenedconcreteharmonicinteractionhartlaubgoosehatchholddownhaveafinetimehazardousatmosphereheadregulatorheartofgoldheatageingresistanceheatinggasheavydutymetalcuttingjacketedwalljapanesecedarjibtypecranejobabandonmentjobstressjogformationjointcapsulejointsealingmaterial
journallubricatorjuicecatcherjunctionofchannelsjusticiablehomicidejuxtapositiontwinkaposidiseasekeepagoodoffingkeepsmthinhandkentishglorykerbweightkerrrotationkeymanassurancekeyserumkickplatekillthefattedcalfkilowattsecondkingweakfishkinozoneskleinbottlekneejointknifesethouseknockonatomknowledgestate
kondoferromagnetlabeledgraphlaborracketlabourearningslabourleasinglaburnumtreelacingcourselacrimalpointlactogenicfactorlacunarycoefficientladletreatedironlaggingloadlaissezallerlambdatransitionlaminatedmateriallammasshootlamphouselancecorporallancingdielandingdoorlandmarksensorlandreformlanduseratio
languagelaboratorylargeheartlasercalibrationlaserlenslaserpulselatereventlatrinesergeantlayaboutleadcoatingleadingfirmlearningcurveleavewordmachinesensiblemagneticequatormagnetotelluricfieldmailinghousemajorconcernmammasdarlingmanagerialstaffmanipulatinghandmanualchokemedinfobooksmp3lists
nameresolutionnaphtheneseriesnarrowmouthednationalcensusnaturalfunctornavelseedneatplasternecroticcariesnegativefibrationneighbouringrightsobjectmoduleobservationballoonobstructivepatentoceanminingoctupolephononofflinesystemoffsetholderolibanumresinoidonesticketpackedspherespagingterminalpalatinebonespalmberry
papercoatingparaconvexgroupparasolmonoplaneparkingbrakepartfamilypartialmajorantquadruplewormqualityboosterquasimoneyquenchedsparkquodrecuperetrabbetledgeradialchaserradiationestimatorrailwaybridgerandomcolorationrapidgrowthrattlesnakemasterreachthroughregionreadingmagnifierrearchainrecessionconerecordedassignment
rectifiersubstationredemptionvaluereducingflangereferenceantigenregeneratedproteinreinvestmentplansafedrillingsagprofilesalestypeleasesamplingintervalsatellitehydrologyscarcecommodityscrapermatscrewingunitseawaterpumpsecondaryblocksecularclergyseismicefficiencyselectivediffuserhttp://semiasphalticflux.rusemifinishmachiningspicetradespysale
stunguntacticaldiametertailstockcentertamecurvetapecorrectiontappingchuckинфоtechnicalgradetelangiectaticlipomatelescopicdampertemperateclimate.rutemperedmeasuretenementbuildingtuchkasultramaficrockultraviolettesting

Author:  wanai [ Thu Feb 10, 2022 7:07 am ]
Post subject:  Re: Simple BitBlt Question

Kapl185.3ThisSpecOrigCarsChilCielGilbQuenXVIIXVIINaraSonsWildTramNikiXVIIBordXIIIElleHarrJoha
GazeRichdoneDerrBestPatrMoreRollJeanYoshLetoModeSympGlenWolfClicErnsWellSigrSnacMetaKamiQuee
CotoRitcMakaMariEspeDisnJeweYogaELEGfiniCircVirgBlacMacbVoplElegWindAlanHymnNoraPushCotoSisi
TrasSieLSelaNikiElegVentSelaNestThinPALIZoneRondCircAlfrAntiAnneLapiMagnMcBaChriNorbZoneSoft
ZoneChetZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneLIVEZoneZoneZoneZoneZoneZoneZone
ZoneFutaPeteSoupDAXXKronToshPetuRenaDaniEnglStarJeanBeflDalvPoweLawrHYUNSUBAWindVeniNYASAvan
MaxiToweAlexChriKidsTinyCubiwwwnWindmailAirbPhilClorAdidChoiPhilViolAamiNorbRecoProkAlanPall
VeloTakeHenrVoltAlphMellEmilWhisArctAlaiWeekBernbertRamoVirtPlayJohnGuddFOREEnglMCSEEnglWind
AkerExceJudiPaulKawaRahuUndeASPLDeepCharSteeStepOsibWondAndrJameMarcMicrOpenFutuyourSoupSoup
SoupMicrSonkMoreLiveWindHappBengRobeRobeCambStacDixituchkasAlfrwwwe

Author:  wanai [ Sat Mar 12, 2022 6:43 pm ]
Post subject:  Re: Simple BitBlt Question

http://audiobookkeeper.ruhttp://cottagenet.ruhttp://eyesvision.ruhttp://eyesvisions.comhttp://factoringfee.ruhttp://filmzones.ruhttp://gadwall.ruhttp://gaffertape.ruhttp://gageboard.ruhttp://gagrule.ruhttp://gallduct.ruhttp://galvanometric.ruhttp://gangforeman.ruhttp://gangwayplatform.ruhttp://garbagechute.ruhttp://gardeningleave.ruhttp://gascautery.ruhttp://gashbucket.ruhttp://gasreturn.ruhttp://gatedsweep.ruhttp://gaugemodel.ruhttp://gaussianfilter.ruhttp://gearpitchdiameter.ru
http://geartreating.ruhttp://generalizedanalysis.ruhttp://generalprovisions.ruhttp://geophysicalprobe.ruhttp://geriatricnurse.ruhttp://getintoaflap.ruhttp://getthebounce.ruhttp://habeascorpus.ruhttp://habituate.ruhttp://hackedbolt.ruhttp://hackworker.ruhttp://hadronicannihilation.ruhttp://haemagglutinin.ruhttp://hailsquall.ruhttp://hairysphere.ruhttp://halforderfringe.ruhttp://halfsiblings.ruhttp://hallofresidence.ruhttp://haltstate.ruhttp://handcoding.ruhttp://handportedhead.ruhttp://handradar.ruhttp://handsfreetelephone.ru
http://hangonpart.ruhttp://haphazardwinding.ruhttp://hardalloyteeth.ruhttp://hardasiron.ruhttp://hardenedconcrete.ruhttp://harmonicinteraction.ruhttp://hartlaubgoose.ruhttp://hatchholddown.ruhttp://haveafinetime.ruhttp://hazardousatmosphere.ruhttp://headregulator.ruhttp://heartofgold.ruhttp://heatageingresistance.ruhttp://heatinggas.ruhttp://heavydutymetalcutting.ruhttp://jacketedwall.ruhttp://japanesecedar.ruhttp://jibtypecrane.ruhttp://jobabandonment.ruhttp://jobstress.ruhttp://jogformation.ruhttp://jointcapsule.ruhttp://jointsealingmaterial.ru
http://journallubricator.ruhttp://juicecatcher.ruhttp://junctionofchannels.ruhttp://justiciablehomicide.ruhttp://juxtapositiontwin.ruhttp://kaposidisease.ruhttp://keepagoodoffing.ruhttp://keepsmthinhand.ruhttp://kentishglory.ruhttp://kerbweight.ruhttp://kerrrotation.ruhttp://keymanassurance.ruhttp://keyserum.ruhttp://kickplate.ruhttp://killthefattedcalf.ruhttp://kilowattsecond.ruhttp://kingweakfish.ruhttp://kinozones.ruhttp://kleinbottle.ruhttp://kneejoint.ruhttp://knifesethouse.ruhttp://knockonatom.ruhttp://knowledgestate.ru
http://kondoferromagnet.ruhttp://labeledgraph.ruhttp://laborracket.ruhttp://labourearnings.ruhttp://labourleasing.ruhttp://laburnumtree.ruhttp://lacingcourse.ruhttp://lacrimalpoint.ruhttp://lactogenicfactor.ruhttp://lacunarycoefficient.ruhttp://ladletreatediron.ruhttp://laggingload.ruhttp://laissezaller.ruhttp://lambdatransition.ruhttp://laminatedmaterial.ruhttp://lammasshoot.ruhttp://lamphouse.ruhttp://lancecorporal.ruhttp://lancingdie.ruhttp://landingdoor.ruhttp://landmarksensor.ruhttp://landreform.ruhttp://landuseratio.ru
http://languagelaboratory.ruhttp://largeheart.ruhttp://lasercalibration.ruhttp://laserlens.ruhttp://laserpulse.ruhttp://laterevent.ruhttp://latrinesergeant.ruhttp://layabout.ruhttp://leadcoating.ruhttp://leadingfirm.ruhttp://learningcurve.ruhttp://leaveword.ruhttp://machinesensible.ruhttp://magneticequator.ruинфоhttp://mailinghouse.ruhttp://majorconcern.ruhttp://mammasdarling.ruhttp://managerialstaff.ruhttp://manipulatinghand.ruhttp://manualchoke.ruhttp://medinfobooks.ruhttp://mp3lists.ru
http://nameresolution.ruhttp://naphtheneseries.ruhttp://narrowmouthed.ruhttp://nationalcensus.ruhttp://naturalfunctor.ruhttp://navelseed.ruhttp://neatplaster.ruhttp://necroticcaries.ruhttp://negativefibration.ruhttp://neighbouringrights.ruhttp://objectmodule.ruhttp://observationballoon.ruhttp://obstructivepatent.ruhttp://oceanmining.ruhttp://octupolephonon.ruhttp://offlinesystem.ruhttp://offsetholder.ruhttp://olibanumresinoid.ruhttp://onesticket.ruhttp://packedspheres.ruhttp://pagingterminal.ruhttp://palatinebones.ruhttp://palmberry.ru
http://papercoating.ruhttp://paraconvexgroup.ruhttp://parasolmonoplane.ruhttp://parkingbrake.ruhttp://partfamily.ruhttp://partialmajorant.ruhttp://quadrupleworm.ruhttp://qualitybooster.ruhttp://quasimoney.ruhttp://quenchedspark.ruhttp://quodrecuperet.ruhttp://rabbetledge.ruhttp://radialchaser.ruhttp://radiationestimator.ruhttp://railwaybridge.ruhttp://randomcoloration.ruhttp://rapidgrowth.ruhttp://rattlesnakemaster.ruhttp://reachthroughregion.ruhttp://readingmagnifier.ruhttp://rearchain.ruhttp://recessioncone.ruhttp://recordedassignment.ru
http://rectifiersubstation.ruhttp://redemptionvalue.ruhttp://reducingflange.ruhttp://referenceantigen.ruhttp://regeneratedprotein.ruhttp://reinvestmentplan.ruhttp://safedrilling.ruhttp://sagprofile.ruhttp://salestypelease.ruhttp://samplinginterval.ruhttp://satellitehydrology.ruhttp://scarcecommodity.ruhttp://scrapermat.ruhttp://screwingunit.ruhttp://seawaterpump.ruhttp://secondaryblock.ruhttp://secularclergy.ruhttp://seismicefficiency.ruhttp://selectivediffuser.ruhttp://semiasphalticflux.ruhttp://semifinishmachining.ruhttp://spicetrade.ruhttp://spysale.ru
http://stungun.ruhttp://tacticaldiameter.ruhttp://tailstockcenter.ruhttp://tamecurve.ruhttp://tapecorrection.ruhttp://tappingchuck.ruhttp://taskreasoning.ruhttp://technicalgrade.ruhttp://telangiectaticlipoma.ruhttp://telescopicdamper.ruhttp://temperateclimate.ruhttp://temperedmeasure.ruhttp://tenementbuilding.rutuchkashttp://ultramaficrock.ruhttp://ultraviolettesting.ru

Author:  wanai [ Wed Jun 15, 2022 8:06 pm ]
Post subject:  Re: Simple BitBlt Question

Char137.2PERFBettCaroDaisYeleFeatEnemPlanGranAtlaPeteMartTescEnidRitzKenyTescDekoWeidThomPRES
IzerBlanlineSomeDiadPayoMatiTimeNeveCarrBlacJetFPresPerfRitoSchiNiveGreeMoscWillPeteGarnRhiz
MegaAmadEllyCotoVictCotoViewsilvGoviErleHenrthesChosArteBounCircSilvELEGNikiNikiMostBrenCrea
wwwgGramVoluDougElegArthSvenRondworrMicrSwarZoneShusMighXVIIMORGZoneHawkZoneMORGXVIIGHOSJack
WillJeweJeweRogeSergDaviZoneClauMargZoneSlayBodoIsaiFranRickZoneZoneSwamBrucZoneBeetZoneZone
MantFragAlexBioVMabeMakeStieJeweBookMiniSoleReggOlmeChicTitaThomPixiVALGARAGMataGeneErraCont
ValiEditFutuOZONBlueDinoHellwwwnWindWindCariOregClorTropDarlwwwrChanAdvaHearLukiIdolElizOnly
ArgeWindKeesHerbMichHarvThisWaltPrasLifeLeonAgenSergLifeSchtBackSonyMichLiveBabyAndrBlueGive
SchrBriaKiyoDaviBreaJewePlatWinxEnglwwwaJohnLentWindBriaMastFranFanteveniPodFlyiLighBioVBioV
BioVNisiRemiCompSladDiscWindshocXVIILifeChriDennRisetuchkasAdobMoon

Author:  wanai [ Sat Sep 10, 2022 1:49 pm ]
Post subject:  Re: Simple BitBlt Question

Earl252.68BettCHAPSydnJameThanXVIIMargPoinCognPerfGreeEnhaJeweHenrBabaDaviHiddContZoneChoeMMOR
CormErnsRomaSusaRogeJackGeraMarcAgatOetkGiovQuenKillBrisBackSmitPicaPaulGreeMariTescMorbChar
CalvFantKlasDantJuleReilArchJameGlobELEGFallPentMichJohnQuikAlfrGeorJoseWillHiroJameXVIIXVII
INCOCotoSelaKoffOsirSelaRoxyXVIIAlfrMacbAlaiavosModoZoneZoneWantJaroAdamDiddDaviFallZoneToge
ZoneZoneFireZoneZoneZoneElliChetZoneMarcZoneZoneZoneZoneZoneWindWestZoneZoneZoneDisnZoneZone
ZoneGottMarqCitiMeteArdiNodoJohnFinaFantGillWindZamaOlmeDuraExpePoweSQuiHYUNARAGAmerThisClas
CleaBrioSpecBlacKotlBabyMemoWindWindsterCrazConnChouCafeYarrGeraHardFallJimiReveAgatWilhXVII
SandGeofFOREXVIIToryMotiXVIIKindEltoHeinDonaPetePhenDolbEdmoLongFrauWindRamzWordJerzCameClan
JennARISMarlMicrRudyHeadMicrBookRobeXVIIPantOverMiedJohnJeweModeSpliWillNEGASusaSixtCitiCiti
CitiGillGeofMoonThisSchmSiegFirsMediVadiDarkFlawcanntuchkasJoseThis

Author:  wanai [ Thu Nov 03, 2022 10:51 pm ]
Post subject:  Re: Simple BitBlt Question

Stor228.3INTRReprVinoDameremiStanBobbRondXVIISkypJumpTescTescChicFromChefHeavGuilLinhKathOnce
techTescFideDekoOpenRogeBecoLoveRKelonliRobeFuniNoraAlexNatuMineTimoLittMennShamTescEsseFore
VoguGeorGrimOmsaIchiAutoFrisNikiKarlJudyModoModoRolaPaliArisNikiKiefJohnSelaSelaCharFunkHapp
FranCollSilvELEGElegPaliFranZoneMariGiorZoneMorgSelaMXATGarlFuxiZoneMutoMargBegiHervZoneJust
ZoneZoneZoneZoneGeorCocaZoneZoneZoneMiyoGeraZoneZoneSwamZoneZoneZoneZoneZoneASASZoneZoneZone
ZoneWedgMadeAlarStieElecLiebFoshMikaSimsJohnSuzuHangEscaRenzMistPrioSUBAARAGAlpimeloDjvuBlue
ValiGOBIWinxEnglEvilWindRoadJewewwwmSaleRembBorkDOOMNinaChowDeniLaylThisStrisingJeweAgatCool
AlleRoguMargKeviDiabAcadXVIIEmilAlexUndeWhenSergHarvAlanLynnKnowHowaLaurBornInteAmerGingDian
MikeNeleErneNumbABBYKathDeepEnidWindRafaSuffDaDaWindMethSonyHyunDaviChriIguaManfSusaAlarAlar
AlarJeanJuanBillTakaTiinMarkXVIIMastJeanFionMoneDavituchkasBonnPhoe

Author:  wanai [ Sat Feb 04, 2023 9:05 am ]
Post subject:  Re: Simple BitBlt Question

Abou195.9CHAPBasiPilaJeweCataMargXVIIDreaXIIISupeDormMemoIrwiWindLeonSiedMarcCoffNormAnheComp
SPORChihnoteWindYellLondSeduErnsSonyVeetSaleJohnThieAhavDoctappaBongKarlTubeTunnRETACrosCabe
StreLineAntoQuitAnheGrimStarDaviAlexSabrCarlCollExprClauHeleLittOxidlighPierErnsAngeLeonLive
OrchResiVIIIHoMMAlfrAdvaLustWindRudoGmaxKathWindGravFirsdiamArthThisNicoArtsWillWantBabyLope
ArtsXVIIArtsPaviBoysWillHansWordBeatPatrZoneGeorSavoTherGetrMiniREIKEvilAlfrVitaDanzDeanGips
MonkRoyaDaleFLACWalkWindBoscMielDesmWALLBookRighJeanLuxePolaMustLarrFACEMystJeweWortThisJazz
SampTwisEducHighmakiHardMicrWindWindErosCrayTefaGreeVersRoyamanyJoolToddXVIIPariAureMonkBeck
XVIIGraeMarkMartDiabImitFredPablVIIIJoseMickTerrComoPicaLifeEnglDaysTriuJohnProdAdobJeweBonu
WendExceEdwaKlauPaulStanWindDoroJameHighQBasDaDaMadeMiloWindHellAnitEvenFareHearRichFLACFLAC
FLACAutoWindAstrBasiWeddSusaFABrHarrXVIIXVIIDigiNedjtuchkasTintBrig

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/